toJson method

Map<String, dynamic> toJson()

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_events'] = this.callEvents;
  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;
  json[r'duration'] = this.duration;
  if (this.next != null) {
    json[r'next'] = this.next;
  } else {
    json[r'next'] = null;
  }
  json[r'participants'] = this.participants;
  if (this.prev != null) {
    json[r'prev'] = this.prev;
  } else {
    json[r'prev'] = null;
  }
  if (this.tmpDataSource != null) {
    json[r'tmp_data_source'] = this.tmpDataSource;
  } else {
    json[r'tmp_data_source'] = null;
  }
  return json;
}