toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final channelName = this.channelName;
  final name = this.name;
  final next = this.next;
  return {
    'channelName': channelName,
    'name': name,
    if (next != null) 'next': next,
  };
}