Simplify
This commit is contained in:
parent
e5bc2d07b4
commit
f75b047a54
|
@ -34,9 +34,7 @@ class Label {
|
|||
'id': id,
|
||||
'title': title,
|
||||
'description': description,
|
||||
'hex_color': color?.value == null
|
||||
? null
|
||||
: color.value.toRadixString(16).padLeft(8, '0').substring(2),
|
||||
'hex_color': color?.value?.toRadixString(16)?.padLeft(8, '0')?.substring(2),
|
||||
'created_by': createdBy?.toJSON(),
|
||||
'updated': updated?.millisecondsSinceEpoch,
|
||||
'created': created?.millisecondsSinceEpoch,
|
||||
|
|
Reference in New Issue
Block a user