InterconnectApplicationAwareInterconnectBandwidthPercentagePolicyBandwidthPercentage.fromMap constructor
InterconnectApplicationAwareInterconnectBandwidthPercentagePolicyBandwidthPercentage.fromMap()
Implementation
factory InterconnectApplicationAwareInterconnectBandwidthPercentagePolicyBandwidthPercentage.fromMap(Map<String, dynamic> map) {
return InterconnectApplicationAwareInterconnectBandwidthPercentagePolicyBandwidthPercentage(
percentage: (() { final guardedValue = map['percentage']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
trafficClass: (() { final guardedValue = map['trafficClass']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
);
}