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