Suite.fromJson constructor
Implementation
factory Suite.fromJson(Map<String, dynamic> json) {
return Suite(
arn: json['arn'] as String?,
counters: json['counters'] != null
? Counters.fromJson(json['counters'] as Map<String, dynamic>)
: null,
created: timeStampFromJson(json['created']),
deviceMinutes: json['deviceMinutes'] != null
? DeviceMinutes.fromJson(
json['deviceMinutes'] as Map<String, dynamic>)
: null,
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(),
);
}