GetNetworkInsightsAnalysisReturnPathComponentInboundHeader.fromMap constructor

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

Implementation

factory GetNetworkInsightsAnalysisReturnPathComponentInboundHeader.fromMap(Map<String, dynamic> map) {
  return GetNetworkInsightsAnalysisReturnPathComponentInboundHeader(
    destinationAddresses: pulumi.Input.fromValue((map['destinationAddresses'] as List).cast<String>()),
    destinationPortRanges: pulumi.Input.fromValue(pulumi.Input.decodeList<GetNetworkInsightsAnalysisReturnPathComponentInboundHeaderDestinationPortRange>(map['destinationPortRanges']!, (value) => GetNetworkInsightsAnalysisReturnPathComponentInboundHeaderDestinationPortRange.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<GetNetworkInsightsAnalysisReturnPathComponentInboundHeaderSourcePortRange>(map['sourcePortRanges']!, (value) => GetNetworkInsightsAnalysisReturnPathComponentInboundHeaderSourcePortRange.fromMap((value as Map).cast<String, dynamic>()))),
  );
}