toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'name': name,
'value': value,
if (important != null) 'important': important,
if (implicit != null) 'implicit': implicit,
if (text != null) 'text': text,
if (parsedOk != null) 'parsedOk': parsedOk,
if (disabled != null) 'disabled': disabled,
if (range != null) 'range': range!.toJson(),
if (longhandProperties != null)
'longhandProperties':
longhandProperties!.map((e) => e.toJson()).toList(),
};
}