Task: Cast a JSON Object to a TypeScript Class
Task: Cast a JSON Object to a TypeScript Class: a task in Terminal-Lego-15k (Harbor dataset). You need to demonstrate how to properly cast/deserialize a JSON object (as received from a remote REST API) into a TypeScript class instance, preserving both the data and the class methods/behavior.
Part of PrimeIntellect/Terminal-Lego-15k.