GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader.fromMap constructor

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

Implementation

factory GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader.fromMap(Map<String, dynamic> map) {
  return GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader(
    destinationAddresses: pulumi.Input.fromValue((map['destinationAddresses'] as List).cast<String>()),
    destinationPortRanges: pulumi.Input.fromValue(pulumi.Input.decodeList<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderDestinationPortRange>(map['destinationPortRanges']!, (value) => GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderDestinationPortRange.fromMap((value as Map).cast<String, dynamic>()))),
    protocol: pulumi.Input.fromValue(map['protocol'] as String),
    sourceAddresses: pulumi.Input.fromValue((map['sourceAddresses'] as List).cast<String>()),
    sourcePortRanges: pulumi.Input.fromValue(pulumi.Input.decodeList<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderSourcePortRange>(map['sourcePortRanges']!, (value) => GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderSourcePortRange.fromMap((value as Map).cast<String, dynamic>()))),
  );
}