Stay organized with collections
Save and categorize content based on your preferences.
blockly > ISerializable
ISerializable interface
Signature:
export interface ISerializable
Methods
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eISerializable\u003c/code\u003e interface defines methods for saving and loading the state of an object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eloadState\u003c/code\u003e uses a JSON serializable value to set the object's state.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esaveState\u003c/code\u003e can optionally perform a full serialization of the object's state.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [ISerializable](./blockly.iserializable_interface.md)\n\nISerializable interface\n-----------------------\n\n**Signature:** \n\n export interface ISerializable \n\nMethods\n-------\n\n| Method | Description |\n|----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| [loadState(state)](./blockly.iserializable_interface.loadstate_1_methodsignature.md) | Takes in a JSON serializable value and sets the ISerializable's state based on that. |\n| [saveState(doFullSerialization)](./blockly.iserializable_interface.savestate_1_methodsignature.md) | |"]]