WeightedPodAffinityTerm.fromJson constructor
Creates a WeightedPodAffinityTerm from JSON data.
Implementation
factory WeightedPodAffinityTerm.fromJson(Map<String, dynamic> json) {
final tempPodAffinityTermJson = json['podAffinityTerm'];
final tempWeightJson = json['weight'];
final PodAffinityTerm tempPodAffinityTerm =
PodAffinityTerm.fromJson(tempPodAffinityTermJson);
final int tempWeight = tempWeightJson;
return WeightedPodAffinityTerm(
podAffinityTerm: tempPodAffinityTerm,
weight: tempWeight,
);
}