toJson method
Implementation
Map<String, dynamic> toJson() {
final status = this.status;
final progressPercent = this.progressPercent;
final statusDetail = this.statusDetail;
return {
'Status': status.toValue(),
if (progressPercent != null) 'ProgressPercent': progressPercent,
if (statusDetail != null) 'StatusDetail': statusDetail,
};
}