toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (channelId != null) {
    _json[r'channel_id'] = channelId;
  }
  if (channelDisplayName != null) {
    _json[r'channel_display_name'] = channelDisplayName;
  }
  if (channelType != null) {
    _json[r'channel_type'] = channelType;
  }
  if (teamId != null) {
    _json[r'team_id'] = teamId;
  }
  if (teamDisplayName != null) {
    _json[r'team_display_name'] = teamDisplayName;
  }
  if (teamType != null) {
    _json[r'team_type'] = teamType;
  }
  if (groupId != null) {
    _json[r'group_id'] = groupId;
  }
  if (autoAdd != null) {
    _json[r'auto_add'] = autoAdd;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (deleteAt != null) {
    _json[r'delete_at'] = deleteAt;
  }
  if (updateAt != null) {
    _json[r'update_at'] = updateAt;
  }
  return _json;
}