Cluster.fromJson constructor

Cluster.fromJson(
  1. Map json_
)

Implementation

Cluster.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        automatedBackupPolicy: json_.containsKey('automatedBackupPolicy')
            ? AutomatedBackupPolicy.fromJson(json_['automatedBackupPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        backupSource: json_.containsKey('backupSource')
            ? BackupSource.fromJson(
                json_['backupSource'] as core.Map<core.String, core.dynamic>)
            : null,
        clusterType: json_.containsKey('clusterType')
            ? json_['clusterType'] as core.String
            : null,
        continuousBackupConfig: json_.containsKey('continuousBackupConfig')
            ? ContinuousBackupConfig.fromJson(json_['continuousBackupConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        continuousBackupInfo: json_.containsKey('continuousBackupInfo')
            ? ContinuousBackupInfo.fromJson(json_['continuousBackupInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        databaseVersion: json_.containsKey('databaseVersion')
            ? json_['databaseVersion'] as core.String
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        encryptionConfig: json_.containsKey('encryptionConfig')
            ? EncryptionConfig.fromJson(json_['encryptionConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        encryptionInfo: json_.containsKey('encryptionInfo')
            ? EncryptionInfo.fromJson(json_['encryptionInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        initialUser: json_.containsKey('initialUser')
            ? UserPassword.fromJson(
                json_['initialUser'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        migrationSource: json_.containsKey('migrationSource')
            ? MigrationSource.fromJson(json_['migrationSource']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        networkConfig: json_.containsKey('networkConfig')
            ? NetworkConfig.fromJson(
                json_['networkConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        primaryConfig: json_.containsKey('primaryConfig')
            ? PrimaryConfig.fromJson(
                json_['primaryConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        reconciling: json_.containsKey('reconciling')
            ? json_['reconciling'] as core.bool
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        secondaryConfig: json_.containsKey('secondaryConfig')
            ? SecondaryConfig.fromJson(json_['secondaryConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        sslConfig: json_.containsKey('sslConfig')
            ? SslConfig.fromJson(
                json_['sslConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );