toJson method
Implementation
@override
Map<String, dynamic> toJson() {
return {
'name': name,
'description': description,
'type': type.value,
'required': isRequired,
'channel_types': channelTypes?.map((e) => e.value).toList(),
};
}