def METHOD_NAME(value: dict[str, t.Any]) -> TimeoutDetail:
    """Return a TimeoutDetail instance using the value previously returned by to_dict."""
    return TimeoutDetail(
        deadline=datetime.datetime.strptime(value['deadline'], TimeoutDetail._DEADLINE_FORMAT).replace(tzinfo=datetime.timezone.utc),
        duration=value['duration'],
    )