toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
if (this.callId != null) {
json[r'callId'] = this.callId;
} else {
json[r'callId'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.startedAt != null) {
json[r'startedAt'] = this.startedAt!.toUtc().toIso8601String();
} else {
json[r'startedAt'] = null;
}
if (this.endedAt != null) {
json[r'endedAt'] = this.endedAt!.toUtc().toIso8601String();
} else {
json[r'endedAt'] = null;
}
if (this.url != null) {
json[r'url'] = this.url;
} else {
json[r'url'] = null;
}
json[r'metadata'] = this.metadata;
return json;
}