toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.browser != null) {
json[r'browser'] = this.browser;
} else {
json[r'browser'] = null;
}
if (this.browserVersion != null) {
json[r'browser_version'] = this.browserVersion;
} else {
json[r'browser_version'] = null;
}
if (this.cqScore != null) {
json[r'cq_score'] = this.cqScore;
} else {
json[r'cq_score'] = null;
}
if (this.currentIp != null) {
json[r'current_ip'] = this.currentIp;
} else {
json[r'current_ip'] = null;
}
if (this.currentSfu != null) {
json[r'current_sfu'] = this.currentSfu;
} else {
json[r'current_sfu'] = null;
}
if (this.distanceToSfuKilometers != null) {
json[r'distance_to_sfu_kilometers'] = this.distanceToSfuKilometers;
} else {
json[r'distance_to_sfu_kilometers'] = null;
}
if (this.endedAt != null) {
json[r'ended_at'] = this.endedAt!.toUtc().toIso8601String();
} else {
json[r'ended_at'] = null;
}
if (this.freezesDurationMs != null) {
json[r'freezes_duration_ms'] = this.freezesDurationMs;
} else {
json[r'freezes_duration_ms'] = null;
}
json[r'is_live'] = this.isLive;
if (this.jitterMs != null) {
json[r'jitter_ms'] = this.jitterMs;
} else {
json[r'jitter_ms'] = null;
}
if (this.latencyMs != null) {
json[r'latency_ms'] = this.latencyMs;
} else {
json[r'latency_ms'] = null;
}
if (this.location != null) {
json[r'location'] = this.location;
} else {
json[r'location'] = null;
}
if (this.os != null) {
json[r'os'] = this.os;
} else {
json[r'os'] = null;
}
json[r'published_tracks'] = this.publishedTracks;
if (this.publisherType != null) {
json[r'publisher_type'] = this.publisherType;
} else {
json[r'publisher_type'] = null;
}
if (this.sdk != null) {
json[r'sdk'] = this.sdk;
} else {
json[r'sdk'] = null;
}
if (this.sdkVersion != null) {
json[r'sdk_version'] = this.sdkVersion;
} else {
json[r'sdk_version'] = null;
}
if (this.startedAt != null) {
json[r'started_at'] = this.startedAt!.toUtc().toIso8601String();
} else {
json[r'started_at'] = null;
}
if (this.unifiedSessionId != null) {
json[r'unified_session_id'] = this.unifiedSessionId;
} else {
json[r'unified_session_id'] = null;
}
json[r'user_session_id'] = this.userSessionId;
if (this.webrtcVersion != null) {
json[r'webrtc_version'] = this.webrtcVersion;
} else {
json[r'webrtc_version'] = null;
}
return json;
}