toJson method
Implementation
Map<String, Object?> toJson() {
var description = this.description;
var elapsedRuntime = this.elapsedRuntime;
var finished = this.finished;
var id = this.id;
var lastUpdate = this.lastUpdate;
var message = this.message;
var progress = this.progress;
var result = this.result;
var self = this.self;
var started = this.started;
var status = this.status;
var submitted = this.submitted;
var submittedBy = this.submittedBy;
final json = <String, Object?>{};
if (description != null) {
json[r'description'] = description;
}
json[r'elapsedRuntime'] = elapsedRuntime;
if (finished != null) {
json[r'finished'] = finished;
}
json[r'id'] = id;
json[r'lastUpdate'] = lastUpdate;
if (message != null) {
json[r'message'] = message;
}
json[r'progress'] = progress;
if (result != null) {
json[r'result'] = result;
}
json[r'self'] = self;
if (started != null) {
json[r'started'] = started;
}
json[r'status'] = status.value;
json[r'submitted'] = submitted;
json[r'submittedBy'] = submittedBy;
return json;
}