ComputeLimits.fromJson constructor
ComputeLimits.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ComputeLimits.fromJson(Map<String, dynamic> json) {
return ComputeLimits(
maximumCapacityUnits: json['MaximumCapacityUnits'] as int,
minimumCapacityUnits: json['MinimumCapacityUnits'] as int,
unitType: (json['UnitType'] as String).toComputeLimitsUnitType(),
maximumCoreCapacityUnits: json['MaximumCoreCapacityUnits'] as int?,
maximumOnDemandCapacityUnits:
json['MaximumOnDemandCapacityUnits'] as int?,
);
}