toJson method
Implementation
Map<String, dynamic> toJson() {
final completed = this.completed;
final error = this.error;
final progressing = this.progressing;
final warning = this.warning;
return {
if (completed != null) 'Completed': completed,
if (error != null) 'Error': error,
if (progressing != null) 'Progressing': progressing,
if (warning != null) 'Warning': warning,
};
}