toJson method
Implementation
@override
Object toJson() => {
if (query case final query?) 'query': query.toJson(),
if (documents case final documents?) 'documents': documents.toJson(),
if (resumeToken case final resumeToken?)
'resumeToken': encodeBytes(resumeToken),
if (readTime case final readTime?) 'readTime': readTime.toJson(),
if (targetId.isNotDefault) 'targetId': targetId,
if (once.isNotDefault) 'once': once,
if (expectedCount case final expectedCount?)
'expectedCount': expectedCount.toJson(),
};