ReportGroup.fromJson constructor
ReportGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ReportGroup.fromJson(Map<String, dynamic> json) {
return ReportGroup(
arn: json['arn'] as String?,
created: timeStampFromJson(json['created']),
exportConfig: json['exportConfig'] != null
? ReportExportConfig.fromJson(
json['exportConfig'] as Map<String, dynamic>)
: null,
lastModified: timeStampFromJson(json['lastModified']),
name: json['name'] as String?,
status: (json['status'] as String?)?.toReportGroupStatusType(),
tags: (json['tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
type: (json['type'] as String?)?.toReportType(),
);
}