ConnectionProfile.fromJson constructor

ConnectionProfile.fromJson(
  1. Map json_
)

Implementation

ConnectionProfile.fromJson(core.Map json_)
    : this(
        bigqueryProfile: json_.containsKey('bigqueryProfile')
            ? BigQueryProfile.fromJson(json_['bigqueryProfile']
                as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        forwardSshConnectivity: json_.containsKey('forwardSshConnectivity')
            ? ForwardSshTunnelConnectivity.fromJson(
                json_['forwardSshConnectivity']
                    as core.Map<core.String, core.dynamic>)
            : null,
        gcsProfile: json_.containsKey('gcsProfile')
            ? GcsProfile.fromJson(
                json_['gcsProfile'] 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,
        mysqlProfile: json_.containsKey('mysqlProfile')
            ? MysqlProfile.fromJson(
                json_['mysqlProfile'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        oracleProfile: json_.containsKey('oracleProfile')
            ? OracleProfile.fromJson(
                json_['oracleProfile'] as core.Map<core.String, core.dynamic>)
            : null,
        postgresqlProfile: json_.containsKey('postgresqlProfile')
            ? PostgresqlProfile.fromJson(json_['postgresqlProfile']
                as core.Map<core.String, core.dynamic>)
            : null,
        privateConnectivity: json_.containsKey('privateConnectivity')
            ? PrivateConnectivity.fromJson(json_['privateConnectivity']
                as core.Map<core.String, core.dynamic>)
            : null,
        sqlServerProfile: json_.containsKey('sqlServerProfile')
            ? SqlServerProfile.fromJson(json_['sqlServerProfile']
                as core.Map<core.String, core.dynamic>)
            : null,
        staticServiceIpConnectivity:
            json_.containsKey('staticServiceIpConnectivity')
                ? StaticServiceIpConnectivity.fromJson(
                    json_['staticServiceIpConnectivity']
                        as core.Map<core.String, core.dynamic>)
                : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );