toJson method
Implementation
Map<String, Object?> toJson() {
var fileUrl = this.fileUrl;
var payload = this.payload;
var progress = this.progress;
var status = this.status;
var submittedTime = this.submittedTime;
var taskId = this.taskId;
final json = <String, Object?>{};
if (fileUrl != null) {
json[r'fileUrl'] = fileUrl;
}
if (payload != null) {
json[r'payload'] = payload;
}
if (progress != null) {
json[r'progress'] = progress;
}
if (status != null) {
json[r'status'] = status;
}
if (submittedTime != null) {
json[r'submittedTime'] = submittedTime.toIso8601String();
}
if (taskId != null) {
json[r'taskId'] = taskId;
}
return json;
}