toJson method
Converts a LimitRangeSpec instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempLimits = limits;
jsonData['limits'] =
tempLimits.map((e) => e.toJson()).toList(growable: false);
return jsonData;
}