Visual.from_json

classmethod Visual.from_json(filepath)

Construct an object from serialized data contained in a JSON file.

Parameters

filepath (path string | file-like object | URL string) – The path, file or URL to the file for serialization.

Returns

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