toJson method
Converts a PriorityLevelConfigurationSpec instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempLimited = limited;
final tempType = type;
if (tempLimited != null) {
jsonData['limited'] = tempLimited.toJson();
}
jsonData['type'] = tempType;
return jsonData;
}