Job.fromJson constructor
Implementation
factory Job.fromJson(Map<String, dynamic> json) {
return Job(
arn: json['arn'] as String?,
counters: json['counters'] != null
? Counters.fromJson(json['counters'] as Map<String, dynamic>)
: null,
created: timeStampFromJson(json['created']),
device: json['device'] != null
? Device.fromJson(json['device'] as Map<String, dynamic>)
: null,
deviceMinutes: json['deviceMinutes'] != null
? DeviceMinutes.fromJson(
json['deviceMinutes'] as Map<String, dynamic>)
: null,
instanceArn: json['instanceArn'] as String?,
message: json['message'] as String?,
name: json['name'] as String?,
result: (json['result'] as String?)?.toExecutionResult(),
started: timeStampFromJson(json['started']),
status: (json['status'] as String?)?.toExecutionStatus(),
stopped: timeStampFromJson(json['stopped']),
type: (json['type'] as String?)?.toTestType(),
videoCapture: json['videoCapture'] as bool?,
videoEndpoint: json['videoEndpoint'] as String?,
);
}