GetServiceAttachmentResult.fromMap constructor
GetServiceAttachmentResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetServiceAttachmentResult.fromMap(Map<String, dynamic> map) {
return GetServiceAttachmentResult(
connectedEndpoints: (() { final guardedValue = map['connectedEndpoints']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetServiceAttachmentConnectedEndpoint>(guardedValue, (value) => GetServiceAttachmentConnectedEndpoint.fromMap((value as Map).cast<String, dynamic>())); })(),
connectionPreference: (() { final guardedValue = map['connectionPreference']; if (guardedValue == null) return null; return guardedValue as String; })(),
consumerAcceptLists: (() { final guardedValue = map['consumerAcceptLists']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetServiceAttachmentConsumerAcceptList>(guardedValue, (value) => GetServiceAttachmentConsumerAcceptList.fromMap((value as Map).cast<String, dynamic>())); })(),
consumerRejectLists: (() { final guardedValue = map['consumerRejectLists']; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); })(),
deletionPolicy: (() { final guardedValue = map['deletionPolicy']; if (guardedValue == null) return null; return guardedValue as String; })(),
description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return guardedValue as String; })(),
domainNames: (() { final guardedValue = map['domainNames']; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); })(),
enableProxyProtocol: (() { final guardedValue = map['enableProxyProtocol']; if (guardedValue == null) return null; return guardedValue as bool; })(),
fingerprint: (() { final guardedValue = map['fingerprint']; if (guardedValue == null) return null; return guardedValue as String; })(),
id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return guardedValue as String; })(),
natSubnets: (() { final guardedValue = map['natSubnets']; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); })(),
project: (() { final guardedValue = map['project']; if (guardedValue == null) return null; return guardedValue as String; })(),
propagatedConnectionLimit: (() { final guardedValue = map['propagatedConnectionLimit']; if (guardedValue == null) return null; return (guardedValue as num).toInt(); })(),
pscServiceAttachmentIds: (() { final guardedValue = map['pscServiceAttachmentIds']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetServiceAttachmentPscServiceAttachmentId>(guardedValue, (value) => GetServiceAttachmentPscServiceAttachmentId.fromMap((value as Map).cast<String, dynamic>())); })(),
reconcileConnections: (() { final guardedValue = map['reconcileConnections']; if (guardedValue == null) return null; return guardedValue as bool; })(),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
selfLink: (() { final guardedValue = map['selfLink']; if (guardedValue == null) return null; return guardedValue as String; })(),
sendPropagatedConnectionLimitIfZero: (() { final guardedValue = map['sendPropagatedConnectionLimitIfZero']; if (guardedValue == null) return null; return guardedValue as bool; })(),
showNatIps: (() { final guardedValue = map['showNatIps']; if (guardedValue == null) return null; return guardedValue as bool; })(),
targetService: (() { final guardedValue = map['targetService']; if (guardedValue == null) return null; return guardedValue as String; })(),
tunnelingConfigs: (() { final guardedValue = map['tunnelingConfigs']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetServiceAttachmentTunnelingConfig>(guardedValue, (value) => GetServiceAttachmentTunnelingConfig.fromMap((value as Map).cast<String, dynamic>())); })(),
);
}