toJson method
Implementation
Json toJson() => {
if (value != null) 'value': value,
if (field.isNotEmpty) 'field': field,
if (label.isNotEmpty) 'label': label,
'color': _hex(color),
'line': line,
'tag': tag,
'byBand': byBand,
if (activeColor != null) 'activeColor': _hex(activeColor!),
if (note.isNotEmpty) 'note': note,
};