NamespacesEventsblockly.events_namespace.blockdrag_class.tojson_methodOn this pageblockly > Events > BlockDrag > toJson Events.BlockDrag.toJson() method Encode the event as JSON. Signature: toJson(): BlockDragJson; Returns: BlockDragJson JSON representation.