toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.averageJitterMs != null) {
json[r'average_jitter_ms'] = this.averageJitterMs;
} else {
json[r'average_jitter_ms'] = null;
}
if (this.averageLatencyMs != null) {
json[r'average_latency_ms'] = this.averageLatencyMs;
} else {
json[r'average_latency_ms'] = null;
}
if (this.callEventCount != null) {
json[r'call_event_count'] = this.callEventCount;
} else {
json[r'call_event_count'] = null;
}
if (this.cqScore != null) {
json[r'cq_score'] = this.cqScore;
} else {
json[r'cq_score'] = null;
}
json[r'live_sessions'] = this.liveSessions;
if (this.maxFreezesDurationMs != null) {
json[r'max_freezes_duration_ms'] = this.maxFreezesDurationMs;
} else {
json[r'max_freezes_duration_ms'] = null;
}
json[r'participants'] = this.participants;
json[r'peak_concurrent_sessions'] = this.peakConcurrentSessions;
json[r'peak_concurrent_users'] = this.peakConcurrentUsers;
json[r'publishers'] = this.publishers;
json[r'sessions'] = this.sessions;
json[r'sfus_used'] = this.sfusUsed;
if (this.totalParticipantDuration != null) {
json[r'total_participant_duration'] = this.totalParticipantDuration;
} else {
json[r'total_participant_duration'] = null;
}
return json;
}