toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (teamId != null) {
    _json[r'team_id'] = teamId;
  }
  if (home != null) {
    _json[r'home'] = home;
  }
  if (readonly != null) {
    _json[r'readonly'] = readonly;
  }
  if (name != null) {
    _json[r'name'] = name;
  }
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (purpose != null) {
    _json[r'purpose'] = purpose;
  }
  if (header != null) {
    _json[r'header'] = header;
  }
  if (creatorId != null) {
    _json[r'creator_id'] = creatorId;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (updateAt != null) {
    _json[r'update_at'] = updateAt;
  }
  if (remoteId != null) {
    _json[r'remote_id'] = remoteId;
  }
  return _json;
}