Endpoint.fromJson constructor

Endpoint.fromJson(
  1. Map json_
)

Implementation

Endpoint.fromJson(core.Map json_)
    : this(
        appEngineVersion: json_.containsKey('appEngineVersion')
            ? AppEngineVersionEndpoint.fromJson(json_['appEngineVersion']
                as core.Map<core.String, core.dynamic>)
            : null,
        cloudFunction: json_.containsKey('cloudFunction')
            ? CloudFunctionEndpoint.fromJson(
                json_['cloudFunction'] as core.Map<core.String, core.dynamic>)
            : null,
        cloudRunRevision: json_.containsKey('cloudRunRevision')
            ? CloudRunRevisionEndpoint.fromJson(json_['cloudRunRevision']
                as core.Map<core.String, core.dynamic>)
            : null,
        cloudSqlInstance: json_.containsKey('cloudSqlInstance')
            ? json_['cloudSqlInstance'] as core.String
            : null,
        forwardingRule: json_.containsKey('forwardingRule')
            ? json_['forwardingRule'] as core.String
            : null,
        forwardingRuleTarget: json_.containsKey('forwardingRuleTarget')
            ? json_['forwardingRuleTarget'] as core.String
            : null,
        gkeMasterCluster: json_.containsKey('gkeMasterCluster')
            ? json_['gkeMasterCluster'] as core.String
            : null,
        instance: json_.containsKey('instance')
            ? json_['instance'] as core.String
            : null,
        ipAddress: json_.containsKey('ipAddress')
            ? json_['ipAddress'] as core.String
            : null,
        loadBalancerId: json_.containsKey('loadBalancerId')
            ? json_['loadBalancerId'] as core.String
            : null,
        loadBalancerType: json_.containsKey('loadBalancerType')
            ? json_['loadBalancerType'] as core.String
            : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        networkType: json_.containsKey('networkType')
            ? json_['networkType'] as core.String
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        projectId: json_.containsKey('projectId')
            ? json_['projectId'] as core.String
            : null,
      );