import { polymorphicClassFromJSON } from "https://deno.land/x/ts_serialize@v2.0.3/polymorphic.ts";
Uses either the polymorphic resolver or the polymorphic switch resolver to determine the appropriate class, then deserialize the input using Serializable#fromJSON, returning the result
Type Parameters
T extends Serializable
Parameters
classPrototype: unknown & { prototype: T; }
json: string | JSONObject