NodeSelector.fromJson constructor
Creates a NodeSelector from JSON data.
Implementation
factory NodeSelector.fromJson(Map<String, dynamic> json) {
final tempNodeSelectorTermsJson = json['nodeSelectorTerms'];
final List<NodeSelectorTerm> tempNodeSelectorTerms =
List<dynamic>.from(tempNodeSelectorTermsJson)
.map(
(e) => NodeSelectorTerm.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList();
return NodeSelector(
nodeSelectorTerms: tempNodeSelectorTerms,
);
}