toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json[r'channel_id'] = channelId;
  if (prevChannelId != null) {
    _json[r'prev_channel_id'] = prevChannelId;
  }
  return _json;
}