toJson method

  1. @override
Object toJson()

Implementation

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