toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

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