AthenaDatasetDefinition.fromJson constructor

AthenaDatasetDefinition.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AthenaDatasetDefinition.fromJson(Map<String, dynamic> json) {
  return AthenaDatasetDefinition(
    catalog: json['Catalog'] as String,
    database: json['Database'] as String,
    outputFormat: (json['OutputFormat'] as String).toAthenaResultFormat(),
    outputS3Uri: json['OutputS3Uri'] as String,
    queryString: json['QueryString'] as String,
    kmsKeyId: json['KmsKeyId'] as String?,
    outputCompression: (json['OutputCompression'] as String?)
        ?.toAthenaResultCompressionType(),
    workGroup: json['WorkGroup'] as String?,
  );
}