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()
Deserialize from dictionary. Please ensure any nested types
are also deserialized correctly or are converted from a serializable format in this method.
Dictionary containing serialized object data
Returns:
GRIDType: Reconstructed object
to_dict()
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