ServiceAttachment.fromJson constructor

ServiceAttachment.fromJson(
  1. Map json_
)

Implementation

ServiceAttachment.fromJson(core.Map json_)
    : this(
        connectedEndpoints: json_.containsKey('connectedEndpoints')
            ? (json_['connectedEndpoints'] as core.List)
                .map((value) => ServiceAttachmentConnectedEndpoint.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        connectionPreference: json_.containsKey('connectionPreference')
            ? json_['connectionPreference'] as core.String
            : null,
        consumerAcceptLists: json_.containsKey('consumerAcceptLists')
            ? (json_['consumerAcceptLists'] as core.List)
                .map((value) =>
                    ServiceAttachmentConsumerProjectLimit.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        consumerRejectLists: json_.containsKey('consumerRejectLists')
            ? (json_['consumerRejectLists'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        domainNames: json_.containsKey('domainNames')
            ? (json_['domainNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        enableProxyProtocol: json_.containsKey('enableProxyProtocol')
            ? json_['enableProxyProtocol'] as core.bool
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        natSubnets: json_.containsKey('natSubnets')
            ? (json_['natSubnets'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        producerForwardingRule: json_.containsKey('producerForwardingRule')
            ? json_['producerForwardingRule'] as core.String
            : null,
        pscServiceAttachmentId: json_.containsKey('pscServiceAttachmentId')
            ? Uint128.fromJson(json_['pscServiceAttachmentId']
                as core.Map<core.String, core.dynamic>)
            : null,
        reconcileConnections: json_.containsKey('reconcileConnections')
            ? json_['reconcileConnections'] as core.bool
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        targetService: json_.containsKey('targetService')
            ? json_['targetService'] as core.String
            : null,
      );