- get_type(json_obj_dict, parent_class, subclasses)
Cast JSON object to custom subclass type extracted from parent class.
str (subclasses (dict of) – Any): JSON dictionary with strings of data type as keys and JSON objects as values.
parent_class (Type) – Parent class from which to derive subclasses for casting.
str – Type): Dictionary of subclasses with strings that match the json dict keys as keys and classes for casting as values.
A Python object (representing the original JSON object) that has been cast to the specified type.
- Return type