OptimisationConstraint.from_data

classmethod OptimisationConstraint.from_data(data)

Construct an object of this type from the provided data.

Parameters

data (dict) – The data dictionary.

Returns

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