StorageDescriptor.fromJson constructor
StorageDescriptor.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StorageDescriptor.fromJson(Map<String, dynamic> json) {
return StorageDescriptor(
bucketColumns: (json['BucketColumns'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
columns: (json['Columns'] as List?)
?.whereNotNull()
.map((e) => Column.fromJson(e as Map<String, dynamic>))
.toList(),
compressed: json['Compressed'] as bool?,
inputFormat: json['InputFormat'] as String?,
location: json['Location'] as String?,
numberOfBuckets: json['NumberOfBuckets'] as int?,
outputFormat: json['OutputFormat'] as String?,
parameters: (json['Parameters'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
schemaReference: json['SchemaReference'] != null
? SchemaReference.fromJson(
json['SchemaReference'] as Map<String, dynamic>)
: null,
serdeInfo: json['SerdeInfo'] != null
? SerDeInfo.fromJson(json['SerdeInfo'] as Map<String, dynamic>)
: null,
skewedInfo: json['SkewedInfo'] != null
? SkewedInfo.fromJson(json['SkewedInfo'] as Map<String, dynamic>)
: null,
sortColumns: (json['SortColumns'] as List?)
?.whereNotNull()
.map((e) => Order.fromJson(e as Map<String, dynamic>))
.toList(),
storedAsSubDirectories: json['StoredAsSubDirectories'] as bool?,
);
}