toJson method

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

Serialize this component to a JSON object.

Implementation

@override
Map<String, dynamic> toJson () => {
  ...super.toJson(),
  'channel_types': channels.map((element) => element.value).toList(),
};