toJson method

Map<String, dynamic> toJson()

Implementation

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