AwsRedshiftClusterDetails.fromJson constructor

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

Implementation

factory AwsRedshiftClusterDetails.fromJson(Map<String, dynamic> json) {
  return AwsRedshiftClusterDetails(
    allowVersionUpgrade: json['AllowVersionUpgrade'] as bool?,
    automatedSnapshotRetentionPeriod:
        json['AutomatedSnapshotRetentionPeriod'] as int?,
    availabilityZone: json['AvailabilityZone'] as String?,
    clusterAvailabilityStatus: json['ClusterAvailabilityStatus'] as String?,
    clusterCreateTime: json['ClusterCreateTime'] as String?,
    clusterIdentifier: json['ClusterIdentifier'] as String?,
    clusterNodes: (json['ClusterNodes'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AwsRedshiftClusterClusterNode.fromJson(e as Map<String, dynamic>))
        .toList(),
    clusterParameterGroups: (json['ClusterParameterGroups'] as List?)
        ?.whereNotNull()
        .map((e) => AwsRedshiftClusterClusterParameterGroup.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    clusterPublicKey: json['ClusterPublicKey'] as String?,
    clusterRevisionNumber: json['ClusterRevisionNumber'] as String?,
    clusterSecurityGroups: (json['ClusterSecurityGroups'] as List?)
        ?.whereNotNull()
        .map((e) => AwsRedshiftClusterClusterSecurityGroup.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    clusterSnapshotCopyStatus: json['ClusterSnapshotCopyStatus'] != null
        ? AwsRedshiftClusterClusterSnapshotCopyStatus.fromJson(
            json['ClusterSnapshotCopyStatus'] as Map<String, dynamic>)
        : null,
    clusterStatus: json['ClusterStatus'] as String?,
    clusterSubnetGroupName: json['ClusterSubnetGroupName'] as String?,
    clusterVersion: json['ClusterVersion'] as String?,
    dBName: json['DBName'] as String?,
    deferredMaintenanceWindows: (json['DeferredMaintenanceWindows'] as List?)
        ?.whereNotNull()
        .map((e) => AwsRedshiftClusterDeferredMaintenanceWindow.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    elasticIpStatus: json['ElasticIpStatus'] != null
        ? AwsRedshiftClusterElasticIpStatus.fromJson(
            json['ElasticIpStatus'] as Map<String, dynamic>)
        : null,
    elasticResizeNumberOfNodeOptions:
        json['ElasticResizeNumberOfNodeOptions'] as String?,
    encrypted: json['Encrypted'] as bool?,
    endpoint: json['Endpoint'] != null
        ? AwsRedshiftClusterEndpoint.fromJson(
            json['Endpoint'] as Map<String, dynamic>)
        : null,
    enhancedVpcRouting: json['EnhancedVpcRouting'] as bool?,
    expectedNextSnapshotScheduleTime:
        json['ExpectedNextSnapshotScheduleTime'] as String?,
    expectedNextSnapshotScheduleTimeStatus:
        json['ExpectedNextSnapshotScheduleTimeStatus'] as String?,
    hsmStatus: json['HsmStatus'] != null
        ? AwsRedshiftClusterHsmStatus.fromJson(
            json['HsmStatus'] as Map<String, dynamic>)
        : null,
    iamRoles: (json['IamRoles'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AwsRedshiftClusterIamRole.fromJson(e as Map<String, dynamic>))
        .toList(),
    kmsKeyId: json['KmsKeyId'] as String?,
    maintenanceTrackName: json['MaintenanceTrackName'] as String?,
    manualSnapshotRetentionPeriod:
        json['ManualSnapshotRetentionPeriod'] as int?,
    masterUsername: json['MasterUsername'] as String?,
    nextMaintenanceWindowStartTime:
        json['NextMaintenanceWindowStartTime'] as String?,
    nodeType: json['NodeType'] as String?,
    numberOfNodes: json['NumberOfNodes'] as int?,
    pendingActions: (json['PendingActions'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    pendingModifiedValues: json['PendingModifiedValues'] != null
        ? AwsRedshiftClusterPendingModifiedValues.fromJson(
            json['PendingModifiedValues'] as Map<String, dynamic>)
        : null,
    preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?,
    publiclyAccessible: json['PubliclyAccessible'] as bool?,
    resizeInfo: json['ResizeInfo'] != null
        ? AwsRedshiftClusterResizeInfo.fromJson(
            json['ResizeInfo'] as Map<String, dynamic>)
        : null,
    restoreStatus: json['RestoreStatus'] != null
        ? AwsRedshiftClusterRestoreStatus.fromJson(
            json['RestoreStatus'] as Map<String, dynamic>)
        : null,
    snapshotScheduleIdentifier: json['SnapshotScheduleIdentifier'] as String?,
    snapshotScheduleState: json['SnapshotScheduleState'] as String?,
    vpcId: json['VpcId'] as String?,
    vpcSecurityGroups: (json['VpcSecurityGroups'] as List?)
        ?.whereNotNull()
        .map((e) => AwsRedshiftClusterVpcSecurityGroup.fromJson(
            e as Map<String, dynamic>))
        .toList(),
  );
}