to_object#
- classmethod VintageDate.to_object(response)[source]#
Parses the FRED API response and returns a list of VintageDate objects.
- Parameters:
response (Dict) – The FRED API response.
- Returns:
A list of VintageDate objects.
- Return type:
List[VintageDate]
- Raises:
ValueError – If the response does not contain the expected data.