toJson method
Implementation
@override
Object toJson() => {
if (targetChangeType.isNotDefault)
'targetChangeType': targetChangeType.toJson(),
if (targetIds.isNotDefault) 'targetIds': targetIds,
'cause': ?cause?.toJson(),
if (resumeToken.isNotDefault) 'resumeToken': encodeBytes(resumeToken),
'readTime': ?readTime?.toJson(),
};