toJson property
Object
get
toJson
Implementation
Object get toJson => {
'name': name,
'description': description,
'type': type.value,
'required': required ?? false,
'channel_types': channels?.map((channel) => channel.value).toList(),
'choices': choices?.map((choice) => choice.toJson()).toList(),
'min_value': min,
'max_value': max,
};