toJson method
Implementation
@override
String toJson() => switch (this) {
value => 'Value',
variable => 'Var',
slot => 'Slot',
unknown => 'Unknown',
not => '!',
negate => 'neg',
equals => '==',
notEquals => '!=',
in_ => 'in',
lessThan => '<',
lessThanOrEquals => '<=',
greaterThan => '>',
greaterThanOrEquals => '>=',
and => '&&',
or => '||',
add => '+',
subtract => '-',
multiply => '*',
contains => 'contains',
containsAll => 'containsAll',
containsAny => 'containsAny',
getAttribute => '.',
hasAttribute => 'has',
like => 'like',
is_ => 'is',
ifThenElse => 'if-then-else',
set => 'Set',
record => 'Record',
};