Report.fromJson constructor
Implementation
factory Report.fromJson(Map<String, dynamic> json) {
return Report(
arn: json['arn'] as String?,
codeCoverageSummary: json['codeCoverageSummary'] != null
? CodeCoverageReportSummary.fromJson(
json['codeCoverageSummary'] as Map<String, dynamic>)
: null,
created: timeStampFromJson(json['created']),
executionId: json['executionId'] as String?,
expired: timeStampFromJson(json['expired']),
exportConfig: json['exportConfig'] != null
? ReportExportConfig.fromJson(
json['exportConfig'] as Map<String, dynamic>)
: null,
name: json['name'] as String?,
reportGroupArn: json['reportGroupArn'] as String?,
status: (json['status'] as String?)?.toReportStatusType(),
testSummary: json['testSummary'] != null
? TestReportSummary.fromJson(
json['testSummary'] as Map<String, dynamic>)
: null,
truncated: json['truncated'] as bool?,
type: (json['type'] as String?)?.toReportType(),
);
}