toJson method
Converts a TopologySelectorTerm instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempMatchLabelExpressions = matchLabelExpressions;
if (tempMatchLabelExpressions != null) {
jsonData['matchLabelExpressions'] = tempMatchLabelExpressions
.map((e) => e.toJson())
.toList(growable: false);
}
return jsonData;
}