toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'jobId': this.jobId,
'phase': this.phase.ordinal,
'message': this.message,
'completed': this.completed,
'error': this.error,
'errorStack': this.errorStack,
'more': this.more,
'percentComplete': this.percentComplete,
'total': this.total,
};
}