PreferredSchedulingTerm.fromJson constructor
Creates a PreferredSchedulingTerm from JSON data.
Implementation
factory PreferredSchedulingTerm.fromJson(Map<String, dynamic> json) {
final tempPreferenceJson = json['preference'];
final tempWeightJson = json['weight'];
final NodeSelectorTerm tempPreference =
NodeSelectorTerm.fromJson(tempPreferenceJson);
final int tempWeight = tempWeightJson;
return PreferredSchedulingTerm(
preference: tempPreference,
weight: tempWeight,
);
}