InterconnectApplicationAwareInterconnectBandwidthPercentagePolicyBandwidthPercentage.fromMap constructor

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

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); })(),
  );
}