toJson method
Implementation
@override
Object toJson() => {
if (nullValue case final $1?) 'nullValue': $1.toJson(),
if (numberValue case final $1?) 'numberValue': encodeDouble($1),
'stringValue': ?stringValue,
'boolValue': ?boolValue,
'jsonPath': jsonPath,
if (willContinue.isNotDefault) 'willContinue': willContinue,
};