FleetTargetCapacitySpecification.fromMap constructor
FleetTargetCapacitySpecification.fromMap(
- Map<String, dynamic> map
)
Implementation
factory FleetTargetCapacitySpecification.fromMap(Map<String, dynamic> map) {
return FleetTargetCapacitySpecification(
defaultTargetCapacityType: pulumi.Input.fromValue(map['defaultTargetCapacityType'] as String),
onDemandTargetCapacity: (() { final guardedValue = map['onDemandTargetCapacity']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
spotTargetCapacity: (() { final guardedValue = map['spotTargetCapacity']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
targetCapacityUnitType: (() { final guardedValue = map['targetCapacityUnitType']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
totalTargetCapacity: pulumi.Input.fromValue(map['totalTargetCapacity'] as int),
);
}