label.js.es6 272 Bytes
Newer Older
Phil Hughes's avatar
Phil Hughes committed
1
class ListLabel {
2
  constructor (obj) {
3
    this.id = obj.id;
4
    this.title = obj.title;
5
    this.color = obj.color;
6
    this.textColor = obj.text_color;
Phil Hughes's avatar
Phil Hughes committed
7
    this.description = obj.description;
8
    this.priority = (obj.priority !== null) ? obj.priority : Infinity;
9 10
  }
}