ExportAssetsToS3ResponseDetails.fromJson constructor

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

Implementation

factory ExportAssetsToS3ResponseDetails.fromJson(Map<String, dynamic> json) {
  return ExportAssetsToS3ResponseDetails(
    assetDestinations: (json['AssetDestinations'] as List)
        .whereNotNull()
        .map((e) => AssetDestinationEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    dataSetId: json['DataSetId'] as String,
    revisionId: json['RevisionId'] as String,
    encryption: json['Encryption'] != null
        ? ExportServerSideEncryption.fromJson(
            json['Encryption'] as Map<String, dynamic>)
        : null,
  );
}