toMap method
Implementation
@override
Map<String, Object?> toMap() {
return {
'type': type,
if (title != null) 'title': title,
if (description != null) 'description': description,
if (defaultValue != null) 'default': defaultValue,
};
}