toJson method
Implementation
@override
Map<String, dynamic> toJson() {
if (multiSelect) {
final json = <String, dynamic>{
'type': 'array',
'items': _enumBody(),
};
if (title != null) json['title'] = title;
if (description != null) json['description'] = description;
if (defaultValue != null) json['default'] = defaultValue;
return json;
}
final json = _enumBody();
if (title != null) json['title'] = title;
if (description != null) json['description'] = description;
if (defaultValue != null) json['default'] = defaultValue;
return json;
}