ScopedResourceSelectorRequirement.fromJson constructor
Creates a ScopedResourceSelectorRequirement from JSON data.
Implementation
factory ScopedResourceSelectorRequirement.fromJson(
Map<String, dynamic> json) {
final tempOperatorJson = json['operator'];
final tempScopeNameJson = json['scopeName'];
final tempValuesJson = json['values'];
final String tempOperator = tempOperatorJson;
final String tempScopeName = tempScopeNameJson;
final List<String>? tempValues =
tempValuesJson != null ? List<String>.from(tempValuesJson) : null;
return ScopedResourceSelectorRequirement(
operator: tempOperator,
scopeName: tempScopeName,
values: tempValues,
);
}