toJson method

Map<String, Object> toJson()

Converts a WeightedPodAffinityTerm instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempPodAffinityTerm = podAffinityTerm;
  final tempWeight = weight;

  jsonData['podAffinityTerm'] = tempPodAffinityTerm.toJson();

  jsonData['weight'] = tempWeight;

  return jsonData;
}