AwsRdsDbClusterSnapshotDetails.fromJson constructor

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

Implementation

factory AwsRdsDbClusterSnapshotDetails.fromJson(Map<String, dynamic> json) {
  return AwsRdsDbClusterSnapshotDetails(
    allocatedStorage: json['AllocatedStorage'] as int?,
    availabilityZones: (json['AvailabilityZones'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    clusterCreateTime: json['ClusterCreateTime'] as String?,
    dbClusterIdentifier: json['DbClusterIdentifier'] as String?,
    dbClusterSnapshotIdentifier:
        json['DbClusterSnapshotIdentifier'] as String?,
    engine: json['Engine'] as String?,
    engineVersion: json['EngineVersion'] as String?,
    iamDatabaseAuthenticationEnabled:
        json['IamDatabaseAuthenticationEnabled'] as bool?,
    kmsKeyId: json['KmsKeyId'] as String?,
    licenseModel: json['LicenseModel'] as String?,
    masterUsername: json['MasterUsername'] as String?,
    percentProgress: json['PercentProgress'] as int?,
    port: json['Port'] as int?,
    snapshotCreateTime: json['SnapshotCreateTime'] as String?,
    snapshotType: json['SnapshotType'] as String?,
    status: json['Status'] as String?,
    storageEncrypted: json['StorageEncrypted'] as bool?,
    vpcId: json['VpcId'] as String?,
  );
}