blockly > Events > VarCreate > toJson
متد Events.VarCreate.toJson().
رویداد را به صورت JSON رمزگذاری کنید.
امضا:
toJson(): VarCreateJson;
برمی گرداند:
VarCreateJson
نمایندگی JSON.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-06 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-06 بهوقت ساعت هماهنگ جهانی."],[[["The `toJson()` method encodes a Blockly Events.VarCreate event as a JSON object."],["It returns a VarCreateJson object representing the JSON format of the event."],["This method is used for serializing the VarCreate event, allowing it to be stored and later reconstructed."]]],["The `Events.VarCreate.toJson()` method encodes a variable creation event into a JSON representation. It takes no parameters and returns a `VarCreateJson` object, which is the JSON representation of the event. This method essentially serializes the variable creation event data into a structured JSON format.\n"]]