in src/braket/schema_common/schema_base.py [0:0]
def parse_raw_schema(json_str: str) -> BraketSchemaBase:
"""
Return schema object given JSON string
Args:
json_str (str): The JSON string of the schema
Returns:
BraketSchemaBase: The schema object. This can also be an
instance of a subclass of BraketSchemaBase.
"""
schema = BraketSchemaBase.parse_raw(json_str)
module = BraketSchemaBase.import_schema_module(schema)
name = schema.braketSchemaHeader.name
schema_class = BraketSchemaBase.get_schema_class(module, name)
return schema_class.parse_raw(json_str)