toJson method

Map<String, Object?> toJson()

Converts this channel to JSON-compatible values.

Implementation

Map<String, Object?> toJson() {
  return {'channel_name': channelName, 'start': start, 'end': end};
}