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.

19 lines
448 B

  1. import { LabelItem } from '~/domain/models/label/label'
  2. export class LabelDTO {
  3. id: number
  4. text: string
  5. prefixKey: string | null
  6. suffixKey: string | null
  7. backgroundColor: string
  8. textColor: string
  9. constructor(item: LabelItem) {
  10. this.id = item.id
  11. this.text = item.text
  12. this.prefixKey = item.prefixKey
  13. this.suffixKey = item.suffixKey
  14. this.backgroundColor = item.backgroundColor
  15. this.textColor = '#ffffff'
  16. }
  17. }