Capsule.from_data

classmethod Capsule.from_data(data)

Construct a capsule from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

class: Capsule – The constructed capsule.