toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json[r'channel_id'] = channelId;
  if (userId != null) {
    _json[r'user_id'] = userId;
  }
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  if (username != null) {
    _json[r'username'] = username;
  }
  if (iconUrl != null) {
    _json[r'icon_url'] = iconUrl;
  }
  return _json;
}