AlloyDbSettings.fromJson constructor

AlloyDbSettings.fromJson(
  1. Map json_
)

Implementation

AlloyDbSettings.fromJson(core.Map json_)
    : this(
        databaseVersion: json_.containsKey('databaseVersion')
            ? json_['databaseVersion'] as core.String
            : null,
        encryptionConfig: json_.containsKey('encryptionConfig')
            ? EncryptionConfig.fromJson(json_['encryptionConfig']
                as core.Map<core.String, core.dynamic>)
            : 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,
        primaryInstanceSettings: json_.containsKey('primaryInstanceSettings')
            ? PrimaryInstanceSettings.fromJson(
                json_['primaryInstanceSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        vpcNetwork: json_.containsKey('vpcNetwork')
            ? json_['vpcNetwork'] as core.String
            : null,
      );