toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
if (type != null) {
json[r'type'] = type;
}
json[r'orgID'] = orgID;
if (org != null) {
json[r'org'] = org;
}
json[r'name'] = name;
if (ownerID != null) {
json[r'ownerID'] = ownerID;
}
if (description != null) {
json[r'description'] = description;
}
if (status != null) {
json[r'status'] = status;
}
if (labels != null) {
json[r'labels'] = labels;
}
if (authorizationID != null) {
json[r'authorizationID'] = authorizationID;
}
json[r'flux'] = flux;
if (every != null) {
json[r'every'] = every;
}
if (cron != null) {
json[r'cron'] = cron;
}
if (offset != null) {
json[r'offset'] = offset;
}
if (latestCompleted != null) {
json[r'latestCompleted'] = latestCompleted!.toUtc().toIso8601String();
}
if (lastRunStatus != null) {
json[r'lastRunStatus'] = lastRunStatus;
}
if (lastRunError != null) {
json[r'lastRunError'] = lastRunError;
}
if (createdAt != null) {
json[r'createdAt'] = createdAt!.toUtc().toIso8601String();
}
if (updatedAt != null) {
json[r'updatedAt'] = updatedAt!.toUtc().toIso8601String();
}
if (links != null) {
json[r'links'] = links;
}
return json;
}