toJson method
Converts a ScopedResourceSelectorRequirement instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempOperator = operator;
final tempScopeName = scopeName;
final tempValues = values;
jsonData['operator'] = tempOperator;
jsonData['scopeName'] = tempScopeName;
if (tempValues != null) {
jsonData['values'] = tempValues;
}
return jsonData;
}