SqlServerConnectionProfile.fromJson constructor

SqlServerConnectionProfile.fromJson(
  1. Map json_
)

Implementation

SqlServerConnectionProfile.fromJson(core.Map json_)
    : this(
        backups: json_.containsKey('backups')
            ? SqlServerBackups.fromJson(
                json_['backups'] as core.Map<core.String, core.dynamic>)
            : null,
        cloudSqlId: json_.containsKey('cloudSqlId')
            ? json_['cloudSqlId'] as core.String
            : null,
        forwardSshConnectivity: json_.containsKey('forwardSshConnectivity')
            ? ForwardSshTunnelConnectivity.fromJson(
                json_['forwardSshConnectivity']
                    as core.Map<core.String, core.dynamic>)
            : null,
        host: json_.containsKey('host') ? json_['host'] 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,
        privateConnectivity: json_.containsKey('privateConnectivity')
            ? PrivateConnectivity.fromJson(json_['privateConnectivity']
                as core.Map<core.String, core.dynamic>)
            : 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,
      );