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