toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (self != null) {
json[r'self'] = self;
}
if (task != null) {
json[r'task'] = task;
}
if (retry != null) {
json[r'retry'] = retry;
}
return json;
}