toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'call_cid'] = this.callCid;
    json[r'call_duration_seconds'] = this.callDurationSeconds;
    json[r'call_session_id'] = this.callSessionId;
    json[r'call_status'] = this.callStatus;
  if (this.createdAt != null) {
    json[r'created_at'] = this.createdAt!.toUtc().toIso8601String();
  } else {
    json[r'created_at'] = null;
  }
    json[r'first_stats_time'] = this.firstStatsTime.toUtc().toIso8601String();
  if (this.qualityScore != null) {
    json[r'quality_score'] = this.qualityScore;
  } else {
    json[r'quality_score'] = null;
  }
  return json;
}