AutoscalingPolicyScaleInControlComputeV1.fromMap constructor

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

Implementation

factory AutoscalingPolicyScaleInControlComputeV1.fromMap(Map<String, dynamic> map) {
  return AutoscalingPolicyScaleInControlComputeV1(
    maxScaledInReplicas: (() { final guardedValue = map['maxScaledInReplicas']; if (guardedValue == null) return null; return pulumi.Input.fromValue(FixedOrPercentComputeV1.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    timeWindowSec: (() { final guardedValue = map['timeWindowSec']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
  );
}