toJson method
Converts a NodeSelector instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempNodeSelectorTerms = nodeSelectorTerms;
jsonData['nodeSelectorTerms'] =
tempNodeSelectorTerms.map((e) => e.toJson()).toList(growable: false);
return jsonData;
}