toJson method
Converts a PreferredSchedulingTerm instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempPreference = preference;
final tempWeight = weight;
jsonData['preference'] = tempPreference.toJson();
jsonData['weight'] = tempWeight;
return jsonData;
}