ConnectionProfile.fromJson constructor

ConnectionProfile.fromJson(
  1. Map _json
)

Implementation

ConnectionProfile.fromJson(core.Map _json)
    : this(
        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, item) => core.MapEntry(
                  key,
                  item 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,
        noConnectivity: _json.containsKey('noConnectivity')
            ? NoConnectivitySettings.fromJson(_json['noConnectivity']
                as core.Map<core.String, core.dynamic>)
            : null,
        oracleProfile: _json.containsKey('oracleProfile')
            ? OracleProfile.fromJson(
                _json['oracleProfile'] as core.Map<core.String, core.dynamic>)
            : null,
        privateConnectivity: _json.containsKey('privateConnectivity')
            ? PrivateConnectivity.fromJson(_json['privateConnectivity']
                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,
      );