toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.callEndedAt != null) {
json[r'call_ended_at'] = this.callEndedAt!.toUtc().toIso8601String();
} else {
json[r'call_ended_at'] = null;
}
json[r'call_id'] = this.callId;
json[r'call_session_id'] = this.callSessionId;
if (this.callStartedAt != null) {
json[r'call_started_at'] = this.callStartedAt!.toUtc().toIso8601String();
} else {
json[r'call_started_at'] = null;
}
json[r'call_type'] = this.callType;
json[r'counts'] = this.counts;
if (this.dataSource != null) {
json[r'data_source'] = this.dataSource;
} else {
json[r'data_source'] = null;
}
json[r'duration'] = this.duration;
if (this.endTime != null) {
json[r'end_time'] = this.endTime!.toUtc().toIso8601String();
} else {
json[r'end_time'] = null;
}
if (this.generatedAt != null) {
json[r'generated_at'] = this.generatedAt!.toUtc().toIso8601String();
} else {
json[r'generated_at'] = null;
}
if (this.publishers != null) {
json[r'publishers'] = this.publishers;
} else {
json[r'publishers'] = null;
}
if (this.sfus != null) {
json[r'sfus'] = this.sfus;
} else {
json[r'sfus'] = null;
}
if (this.startTime != null) {
json[r'start_time'] = this.startTime!.toUtc().toIso8601String();
} else {
json[r'start_time'] = null;
}
if (this.subscribers != null) {
json[r'subscribers'] = this.subscribers;
} else {
json[r'subscribers'] = null;
}
return json;
}