GetServiceAttachmentResult.fromMap constructor

GetServiceAttachmentResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetServiceAttachmentResult.fromMap(Map<String, dynamic> map) {
  return GetServiceAttachmentResult(
    connectedEndpoints: pulumi.Input.decodeList<ServiceAttachmentConnectedEndpointResponse>(map['connectedEndpoints']!, (value) => ServiceAttachmentConnectedEndpointResponse.fromMap((value as Map).cast<String, dynamic>())),
    connectionPreference: map['connectionPreference'] as String,
    consumerAcceptLists: pulumi.Input.decodeList<ServiceAttachmentConsumerProjectLimitResponse>(map['consumerAcceptLists']!, (value) => ServiceAttachmentConsumerProjectLimitResponse.fromMap((value as Map).cast<String, dynamic>())),
    consumerRejectLists: (map['consumerRejectLists'] as List).cast<String>(),
    creationTimestamp: map['creationTimestamp'] as String,
    description: map['description'] as String,
    domainNames: (map['domainNames'] as List).cast<String>(),
    enableProxyProtocol: map['enableProxyProtocol'] as bool,
    fingerprint: map['fingerprint'] as String,
    kind: map['kind'] as String,
    name: map['name'] as String,
    natSubnets: (map['natSubnets'] as List).cast<String>(),
    producerForwardingRule: map['producerForwardingRule'] as String,
    propagatedConnectionLimit: map['propagatedConnectionLimit'] as int,
    pscServiceAttachmentId: Uint128Response.fromMap((map['pscServiceAttachmentId']! as Map).cast<String, dynamic>()),
    reconcileConnections: map['reconcileConnections'] as bool,
    region: map['region'] as String,
    selfLink: map['selfLink'] as String,
    targetService: map['targetService'] as String,
    tunnelingConfig: ServiceAttachmentTunnelingConfigResponse.fromMap((map['tunnelingConfig']! as Map).cast<String, dynamic>()),
  );
}