toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.hostUserId != null) {
    json[r'hostUserId'] = this.hostUserId;
  } else {
    json[r'hostUserId'] = null;
  }
  if (this.workspaceId != null) {
    json[r'workspaceId'] = this.workspaceId;
  } else {
    json[r'workspaceId'] = null;
  }
  if (this.roomId != null) {
    json[r'roomId'] = this.roomId;
  } else {
    json[r'roomId'] = null;
  }
    json[r'participants'] = this.participants;
    json[r'metadata'] = this.metadata;
  if (this.startedAt != null) {
    json[r'startedAt'] = this.startedAt!.toUtc().toIso8601String();
  } else {
    json[r'startedAt'] = null;
  }
  if (this.endedAt != null) {
    json[r'endedAt'] = this.endedAt!.toUtc().toIso8601String();
  } else {
    json[r'endedAt'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt!.toUtc().toIso8601String();
  } else {
    json[r'createdAt'] = null;
  }
  return json;
}