LineConstraint.from_json

classmethod LineConstraint.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:

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