to_object_async#

async classmethod Source.to_object_async(response)[source]#

Asynchronously parses the FRED API response and returns a list of Source objects.

Parameters:

response (Dict) – The FRED API response.

Returns:

A list of Source objects.

Return type:

List[Source]

Raises:

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