toJson method
Converts a MatchCondition instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempExpression = expression;
final tempName = name;
jsonData['expression'] = tempExpression;
jsonData['name'] = tempName;
return jsonData;
}