toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'call_id'] = this.callId;
json[r'call_session_id'] = this.callSessionId;
json[r'call_type'] = this.callType;
json[r'duration'] = this.duration;
if (this.next != null) {
json[r'next'] = this.next;
} else {
json[r'next'] = null;
}
json[r'participants_sessions'] = this.participantsSessions;
if (this.prev != null) {
json[r'prev'] = this.prev;
} else {
json[r'prev'] = null;
}
if (this.session != null) {
json[r'session'] = this.session;
} else {
json[r'session'] = null;
}
json[r'total_participant_duration'] = this.totalParticipantDuration;
json[r'total_participant_sessions'] = this.totalParticipantSessions;
return json;
}