EncryptionConfiguration.fromJson constructor

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

Implementation

factory EncryptionConfiguration.fromJson(Map<String, dynamic> json) {
  return EncryptionConfiguration(
    cloudWatchEncryption: json['CloudWatchEncryption'] != null
        ? CloudWatchEncryption.fromJson(
            json['CloudWatchEncryption'] as Map<String, dynamic>)
        : null,
    jobBookmarksEncryption: json['JobBookmarksEncryption'] != null
        ? JobBookmarksEncryption.fromJson(
            json['JobBookmarksEncryption'] as Map<String, dynamic>)
        : null,
    s3Encryption: (json['S3Encryption'] as List?)
        ?.whereNotNull()
        .map((e) => S3Encryption.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}