Texture.from_json

classmethod Texture.from_json(filepath)

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

Parameters

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

Returns

compas.data.Data – An object of the type of cls.