Map<String, dynamic> toJson() { return { 'keyPiece': keyPiece.toJson(), 'sourceKeys': [...sourceKeys], 'filters': filters.toJson(), }; }