Duration.from_data

classmethod Duration.from_data(data)[source]

Construct a duration from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

Duration – An instance of Duration.