Duration.from_data

classmethod Duration.from_data(data)

Construct a duration from its data representation.

Parameters:

data (dict) – The data dictionary.

Returns:

Duration – An instance of Duration.