TaskExecutionResultDetail.fromJson constructor

TaskExecutionResultDetail.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TaskExecutionResultDetail.fromJson(Map<String, dynamic> json) {
  return TaskExecutionResultDetail(
    errorCode: json['ErrorCode'] as String?,
    errorDetail: json['ErrorDetail'] as String?,
    prepareDuration: json['PrepareDuration'] as int?,
    prepareStatus: (json['PrepareStatus'] as String?)?.toPhaseStatus(),
    totalDuration: json['TotalDuration'] as int?,
    transferDuration: json['TransferDuration'] as int?,
    transferStatus: (json['TransferStatus'] as String?)?.toPhaseStatus(),
    verifyDuration: json['VerifyDuration'] as int?,
    verifyStatus: (json['VerifyStatus'] as String?)?.toPhaseStatus(),
  );
}