toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'call_cid'] = this.callCid;
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'digit'] = this.digit;
json[r'duration_ms'] = this.durationMs;
json[r'seq_number'] = this.seqNumber;
json[r'timestamp'] = this.timestamp.toUtc().toIso8601String();
json[r'type'] = this.type;
json[r'user'] = this.user;
if (this.code != null) {
json[r'code'] = this.code;
} else {
json[r'code'] = null;
}
json[r'error'] = this.error;
json[r'ingress_stream_id'] = this.ingressStreamId;
json[r'user_id'] = this.userId;
if (this.clientIp != null) {
json[r'client_ip'] = this.clientIp;
} else {
json[r'client_ip'] = null;
}
if (this.clientName != null) {
json[r'client_name'] = this.clientName;
} else {
json[r'client_name'] = null;
}
json[r'publisher_type'] = this.publisherType;
if (this.version != null) {
json[r'version'] = this.version;
} else {
json[r'version'] = null;
}
return json;
}