to_object#

classmethod Tag.to_object(response)[source]#

Parses the FRED API response and returns a list of Tag objects.

Parameters:

response (Dict) – The FRED API response.

Returns:

A list of Tag objects.

Return type:

List[Tag]

Raises:

ValueError – If the response does not contain the expected data.