toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.totalCount != null) {
json[r'total_count'] = this.totalCount;
} else {
json[r'total_count'] = null;
}
if (this.processedCount != null) {
json[r'processed_count'] = this.processedCount;
} else {
json[r'processed_count'] = null;
}
if (this.progressPercent != null) {
json[r'progress_percent'] = this.progressPercent;
} else {
json[r'progress_percent'] = null;
}
if (this.summary != null) {
json[r'summary'] = this.summary;
} else {
json[r'summary'] = null;
}
if (this.createdAt != null) {
json[r'created_at'] = this.createdAt!.toUtc().toIso8601String();
} else {
json[r'created_at'] = null;
}
if (this.completedAt != null) {
json[r'completed_at'] = this.completedAt!.toUtc().toIso8601String();
} else {
json[r'completed_at'] = null;
}
if (this.metadata != null) {
json[r'metadata'] = this.metadata;
} else {
json[r'metadata'] = null;
}
return json;
}