toJson method
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;
}