toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'backstage'] = this.backstage;
json[r'blocked_user_ids'] = this.blockedUserIds;
json[r'cid'] = this.cid;
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'created_by'] = this.createdBy;
json[r'current_session_id'] = this.currentSessionId;
json[r'custom'] = this.custom;
json[r'egress'] = this.egress;
if (this.endedAt != null) {
json[r'ended_at'] = this.endedAt!.toUtc().toIso8601String();
} else {
json[r'ended_at'] = null;
}
json[r'id'] = this.id;
json[r'ingress'] = this.ingress;
if (this.joinAheadTimeSeconds != null) {
json[r'join_ahead_time_seconds'] = this.joinAheadTimeSeconds;
} else {
json[r'join_ahead_time_seconds'] = null;
}
json[r'recording'] = this.recording;
if (this.session != null) {
json[r'session'] = this.session;
} else {
json[r'session'] = null;
}
json[r'settings'] = this.settings;
if (this.startsAt != null) {
json[r'starts_at'] = this.startsAt!.toUtc().toIso8601String();
} else {
json[r'starts_at'] = null;
}
if (this.team != null) {
json[r'team'] = this.team;
} else {
json[r'team'] = null;
}
if (this.thumbnails != null) {
json[r'thumbnails'] = this.thumbnails;
} else {
json[r'thumbnails'] = null;
}
json[r'transcribing'] = this.transcribing;
json[r'type'] = this.type;
json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
return json;
}