CRA_Assembly.from_json

classmethod CRA_Assembly.from_json(filepath)

Construct an object of this type from a JSON file.

Parameters:
filepathstr

The path to the JSON file.

Returns:
compas.data.Data

An instance of this object type if the data contained in the file has the correct schema.

Raises:
TypeError

If the data in the file is not a compas.data.Data.