AwsRdsDbClusterDetails.fromJson constructor

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

Implementation

factory AwsRdsDbClusterDetails.fromJson(Map<String, dynamic> json) {
  return AwsRdsDbClusterDetails(
    activityStreamStatus: json['ActivityStreamStatus'] as String?,
    allocatedStorage: json['AllocatedStorage'] as int?,
    associatedRoles: (json['AssociatedRoles'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AwsRdsDbClusterAssociatedRole.fromJson(e as Map<String, dynamic>))
        .toList(),
    availabilityZones: (json['AvailabilityZones'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    backupRetentionPeriod: json['BackupRetentionPeriod'] as int?,
    clusterCreateTime: json['ClusterCreateTime'] as String?,
    copyTagsToSnapshot: json['CopyTagsToSnapshot'] as bool?,
    crossAccountClone: json['CrossAccountClone'] as bool?,
    customEndpoints: (json['CustomEndpoints'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    databaseName: json['DatabaseName'] as String?,
    dbClusterIdentifier: json['DbClusterIdentifier'] as String?,
    dbClusterMembers: (json['DbClusterMembers'] as List?)
        ?.whereNotNull()
        .map((e) => AwsRdsDbClusterMember.fromJson(e as Map<String, dynamic>))
        .toList(),
    dbClusterOptionGroupMemberships:
        (json['DbClusterOptionGroupMemberships'] as List?)
            ?.whereNotNull()
            .map((e) => AwsRdsDbClusterOptionGroupMembership.fromJson(
                e as Map<String, dynamic>))
            .toList(),
    dbClusterParameterGroup: json['DbClusterParameterGroup'] as String?,
    dbClusterResourceId: json['DbClusterResourceId'] as String?,
    dbSubnetGroup: json['DbSubnetGroup'] as String?,
    deletionProtection: json['DeletionProtection'] as bool?,
    domainMemberships: (json['DomainMemberships'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AwsRdsDbDomainMembership.fromJson(e as Map<String, dynamic>))
        .toList(),
    enabledCloudWatchLogsExports:
        (json['EnabledCloudWatchLogsExports'] as List?)
            ?.whereNotNull()
            .map((e) => e as String)
            .toList(),
    endpoint: json['Endpoint'] as String?,
    engine: json['Engine'] as String?,
    engineMode: json['EngineMode'] as String?,
    engineVersion: json['EngineVersion'] as String?,
    hostedZoneId: json['HostedZoneId'] as String?,
    httpEndpointEnabled: json['HttpEndpointEnabled'] as bool?,
    iamDatabaseAuthenticationEnabled:
        json['IamDatabaseAuthenticationEnabled'] as bool?,
    kmsKeyId: json['KmsKeyId'] as String?,
    masterUsername: json['MasterUsername'] as String?,
    multiAz: json['MultiAz'] as bool?,
    port: json['Port'] as int?,
    preferredBackupWindow: json['PreferredBackupWindow'] as String?,
    preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?,
    readReplicaIdentifiers: (json['ReadReplicaIdentifiers'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    readerEndpoint: json['ReaderEndpoint'] as String?,
    status: json['Status'] as String?,
    storageEncrypted: json['StorageEncrypted'] as bool?,
    vpcSecurityGroups: (json['VpcSecurityGroups'] as List?)
        ?.whereNotNull()
        .map((e) => AwsRdsDbInstanceVpcSecurityGroup.fromJson(
            e as Map<String, dynamic>))
        .toList(),
  );
}