LimitRangeSpec.fromJson constructor
Creates a LimitRangeSpec from JSON data.
Implementation
factory LimitRangeSpec.fromJson(Map<String, dynamic> json) {
final tempLimitsJson = json['limits'];
final List<LimitRangeItem> tempLimits = List<dynamic>.from(tempLimitsJson)
.map(
(e) => LimitRangeItem.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList();
return LimitRangeSpec(
limits: tempLimits,
);
}