toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'call_cid'] = this.callCid;
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'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'ingress_stream_id'] = this.ingressStreamId;
json[r'publisher_type'] = this.publisherType;
json[r'type'] = this.type;
json[r'user_id'] = this.userId;
if (this.version != null) {
json[r'version'] = this.version;
} else {
json[r'version'] = null;
}
return json;
}