PostgreSqlConnectionProfile.fromJson constructor

PostgreSqlConnectionProfile.fromJson(
  1. Map json_
)

Implementation

PostgreSqlConnectionProfile.fromJson(core.Map json_)
    : this(
        alloydbClusterId: json_.containsKey('alloydbClusterId')
            ? json_['alloydbClusterId'] as core.String
            : null,
        cloudSqlId: json_.containsKey('cloudSqlId')
            ? json_['cloudSqlId'] as core.String
            : null,
        host: json_.containsKey('host') ? json_['host'] as core.String : null,
        networkArchitecture: json_.containsKey('networkArchitecture')
            ? json_['networkArchitecture'] as core.String
            : null,
        password: json_.containsKey('password')
            ? json_['password'] as core.String
            : null,
        passwordSet: json_.containsKey('passwordSet')
            ? json_['passwordSet'] as core.bool
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        privateServiceConnectConnectivity:
            json_.containsKey('privateServiceConnectConnectivity')
                ? PrivateServiceConnectConnectivity.fromJson(
                    json_['privateServiceConnectConnectivity']
                        as core.Map<core.String, core.dynamic>)
                : null,
        ssl: json_.containsKey('ssl')
            ? SslConfig.fromJson(
                json_['ssl'] as core.Map<core.String, core.dynamic>)
            : null,
        staticIpConnectivity: json_.containsKey('staticIpConnectivity')
            ? StaticIpConnectivity.fromJson(json_['staticIpConnectivity']
                as core.Map<core.String, core.dynamic>)
            : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
      );