toJson method
Implementation
@override
Object toJson() => {
if (stringValue case final stringValue?) 'stringValue': stringValue,
if (numericValue case final numericValue?)
'numericValue': encodeDouble(numericValue),
'operation': operation.toJson(),
};