ResourceDataSyncS3Destination.fromJson constructor

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

Implementation

factory ResourceDataSyncS3Destination.fromJson(Map<String, dynamic> json) {
  return ResourceDataSyncS3Destination(
    bucketName: json['BucketName'] as String,
    region: json['Region'] as String,
    syncFormat: (json['SyncFormat'] as String).toResourceDataSyncS3Format(),
    awsKMSKeyARN: json['AWSKMSKeyARN'] as String?,
    destinationDataSharing: json['DestinationDataSharing'] != null
        ? ResourceDataSyncDestinationDataSharing.fromJson(
            json['DestinationDataSharing'] as Map<String, dynamic>)
        : null,
    prefix: json['Prefix'] as String?,
  );
}