toJson method

Map<String, Object> toJson()

Converts a TopologySelectorLabelRequirement instance to JSON data.

Implementation

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

  final tempKey = key;
  final tempValues = values;

  jsonData['key'] = tempKey;

  jsonData['values'] = tempValues;

  return jsonData;
}