Skip to main content
Abstract base class for all GRID Robot API types. All serializable types used as return values in the GRID Robot API should inherit from this class and implement to_dict() and from_dict().

Methods

from_dict()

Signature
Deserialize from dictionary. Please ensure any nested types are also deserialized correctly or are converted from a serializable format in this method.
dict
required
Dictionary containing serialized object data
Returns: GRIDType: Reconstructed object

to_dict()

Signature
Serialize to dictionary for JSON transfer. Please ensure any nested types are also JSON serializable or are converted to a serializable format in this method. Returns: dict: Dictionary representation of the object