ReportDefinition.fromJson constructor
ReportDefinition.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ReportDefinition.fromJson(Map<String, dynamic> json) {
return ReportDefinition(
additionalSchemaElements: (json['AdditionalSchemaElements'] as List)
.whereNotNull()
.map((e) => (e as String).toSchemaElement())
.toList(),
compression: (json['Compression'] as String).toCompressionFormat(),
format: (json['Format'] as String).toReportFormat(),
reportName: json['ReportName'] as String,
s3Bucket: json['S3Bucket'] as String,
s3Prefix: json['S3Prefix'] as String,
s3Region: (json['S3Region'] as String).toAWSRegion(),
timeUnit: (json['TimeUnit'] as String).toTimeUnit(),
additionalArtifacts: (json['AdditionalArtifacts'] as List?)
?.whereNotNull()
.map((e) => (e as String).toAdditionalArtifact())
.toList(),
refreshClosedReports: json['RefreshClosedReports'] as bool?,
reportVersioning:
(json['ReportVersioning'] as String?)?.toReportVersioning(),
);
}