You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
511 B

import { LinkTypeItem, LinkItem } from '~/domain/models/links/link'
export class LinkTypeDTO {
id: number
text: string
color: string
constructor(item: LinkTypeItem) {
this.id = item.id
this.text = item.name
this.color = item.color
}
}
export class LinkDTO {
id: number
fromId: number
toId: number
labelId: number
constructor(item: LinkItem) {
this.id = item.id
this.fromId = item.annotation_id_1
this.toId = item.annotation_id_2
this.labelId = item.type
}
}