toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'accepted_by'] = this.acceptedBy;
json[r'anonymous_participant_count'] = this.anonymousParticipantCount;
if (this.endedAt != null) {
json[r'ended_at'] = this.endedAt!.toUtc().toIso8601String();
} else {
json[r'ended_at'] = null;
}
json[r'id'] = this.id;
if (this.liveEndedAt != null) {
json[r'live_ended_at'] = this.liveEndedAt!.toUtc().toIso8601String();
} else {
json[r'live_ended_at'] = null;
}
if (this.liveStartedAt != null) {
json[r'live_started_at'] = this.liveStartedAt!.toUtc().toIso8601String();
} else {
json[r'live_started_at'] = null;
}
json[r'missed_by'] = this.missedBy;
json[r'participants'] = this.participants;
json[r'participants_count_by_role'] = this.participantsCountByRole;
json[r'rejected_by'] = this.rejectedBy;
if (this.startedAt != null) {
json[r'started_at'] = this.startedAt!.toUtc().toIso8601String();
} else {
json[r'started_at'] = null;
}
if (this.timerEndsAt != null) {
json[r'timer_ends_at'] = this.timerEndsAt!.toUtc().toIso8601String();
} else {
json[r'timer_ends_at'] = null;
}
return json;
}