Capsule.from_data

classmethod Capsule.from_data(data)

Construct a capsule from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

Capsule – The constructed capsule.