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