Duration.
from_data
Construct a duration from its data representation.
data (dict) – The data dictionary.
dict
Duration – An instance of Duration.
Duration