toJson method
Implementation
@override
Object toJson() => {
'parent': parent,
'collectionId': collectionId,
if (documentId.isNotDefault) 'documentId': documentId,
if (document case final document?) 'document': document.toJson(),
if (mask case final mask?) 'mask': mask.toJson(),
};