FleetCapacity.fromJson constructor
Implementation
factory FleetCapacity.fromJson(Map<String, dynamic> json) {
return FleetCapacity(
fleetId: json['FleetId'] as String?,
instanceCounts: json['InstanceCounts'] != null
? EC2InstanceCounts.fromJson(
json['InstanceCounts'] as Map<String, dynamic>)
: null,
instanceType: (json['InstanceType'] as String?)?.toEC2InstanceType(),
);
}