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