GetReportDefinitionResult.fromMap constructor

GetReportDefinitionResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetReportDefinitionResult.fromMap(Map<String, dynamic> map) {
  return GetReportDefinitionResult(
    additionalArtifacts: (() { final guardedValue = map['additionalArtifacts']; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); })(),
    additionalSchemaElements: (() { final guardedValue = map['additionalSchemaElements']; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); })(),
    compression: (() { final guardedValue = map['compression']; if (guardedValue == null) return null; return guardedValue as String; })(),
    format: (() { final guardedValue = map['format']; if (guardedValue == null) return null; return guardedValue as String; })(),
    id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
    refreshClosedReports: (() { final guardedValue = map['refreshClosedReports']; if (guardedValue == null) return null; return guardedValue as bool; })(),
    reportName: (() { final guardedValue = map['reportName']; if (guardedValue == null) return null; return guardedValue as String; })(),
    reportVersioning: (() { final guardedValue = map['reportVersioning']; if (guardedValue == null) return null; return guardedValue as String; })(),
    s3Bucket: (() { final guardedValue = map['s3Bucket']; if (guardedValue == null) return null; return guardedValue as String; })(),
    s3Prefix: (() { final guardedValue = map['s3Prefix']; if (guardedValue == null) return null; return guardedValue as String; })(),
    s3Region: (() { final guardedValue = map['s3Region']; if (guardedValue == null) return null; return guardedValue as String; })(),
    tags: (() { final guardedValue = map['tags']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
    timeUnit: (() { final guardedValue = map['timeUnit']; if (guardedValue == null) return null; return guardedValue as String; })(),
  );
}