GetMLTaskRunResponse.fromJson constructor
GetMLTaskRunResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetMLTaskRunResponse.fromJson(Map<String, dynamic> json) {
return GetMLTaskRunResponse(
completedOn: timeStampFromJson(json['CompletedOn']),
errorString: json['ErrorString'] as String?,
executionTime: json['ExecutionTime'] as int?,
lastModifiedOn: timeStampFromJson(json['LastModifiedOn']),
logGroupName: json['LogGroupName'] as String?,
properties: json['Properties'] != null
? TaskRunProperties.fromJson(
json['Properties'] as Map<String, dynamic>)
: null,
startedOn: timeStampFromJson(json['StartedOn']),
status: (json['Status'] as String?)?.toTaskStatusType(),
taskRunId: json['TaskRunId'] as String?,
transformId: json['TransformId'] as String?,
);
}