toJson method
Implementation
Map<String, dynamic> toJson() {
final additionalSchemaElements = this.additionalSchemaElements;
final compression = this.compression;
final format = this.format;
final reportName = this.reportName;
final s3Bucket = this.s3Bucket;
final s3Prefix = this.s3Prefix;
final s3Region = this.s3Region;
final timeUnit = this.timeUnit;
final additionalArtifacts = this.additionalArtifacts;
final refreshClosedReports = this.refreshClosedReports;
final reportVersioning = this.reportVersioning;
return {
'AdditionalSchemaElements':
additionalSchemaElements.map((e) => e.toValue()).toList(),
'Compression': compression.toValue(),
'Format': format.toValue(),
'ReportName': reportName,
'S3Bucket': s3Bucket,
'S3Prefix': s3Prefix,
'S3Region': s3Region.toValue(),
'TimeUnit': timeUnit.toValue(),
if (additionalArtifacts != null)
'AdditionalArtifacts':
additionalArtifacts.map((e) => e.toValue()).toList(),
if (refreshClosedReports != null)
'RefreshClosedReports': refreshClosedReports,
if (reportVersioning != null)
'ReportVersioning': reportVersioning.toValue(),
};
}