Collision.from_jsonstring

classmethod Collision.from_jsonstring(string)

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

Parameters

string (str) – The object as a JSON string.

Returns

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