toJson method
Implementation
@override
Map<String, dynamic> toJson() {
var map = {
'id': id,
};
if (name != null) map['name'] = name!;
if (styles != null) {
map['styles'] = styles is String ? styles : styles.toJson();
}
return map;
}