toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (updateAt != null) {
    _json[r'update_at'] = updateAt;
  }
  if (deleteAt != null) {
    _json[r'delete_at'] = deleteAt;
  }
  if (teamId != null) {
    _json[r'team_id'] = teamId;
  }
  if (type != null) {
    _json[r'type'] = type;
  }
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (name != null) {
    _json[r'name'] = name;
  }
  if (header != null) {
    _json[r'header'] = header;
  }
  if (purpose != null) {
    _json[r'purpose'] = purpose;
  }
  if (lastPostAt != null) {
    _json[r'last_post_at'] = lastPostAt;
  }
  if (totalMsgCount != null) {
    _json[r'total_msg_count'] = totalMsgCount;
  }
  if (extraUpdateAt != null) {
    _json[r'extra_update_at'] = extraUpdateAt;
  }
  if (creatorId != null) {
    _json[r'creator_id'] = creatorId;
  }
  return _json;
}