Capsule.from_data

classmethod Capsule.from_data(data)[source]

Construct a capsule from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

class: Capsule – The constructed capsule.