ClusterServerlessV2ScalingConfiguration.fromMap constructor
ClusterServerlessV2ScalingConfiguration.fromMap(
- Map<String, dynamic> map
)
Implementation
factory ClusterServerlessV2ScalingConfiguration.fromMap(Map<String, dynamic> map) {
return ClusterServerlessV2ScalingConfiguration(
maxCapacity: (() { final guardedValue = map['maxCapacity']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toDouble()); })(),
minCapacity: (() { final guardedValue = map['minCapacity']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toDouble()); })(),
);
}