of

public static ForexResponse of(Map<String, Object> stringObjectMap)

Builds a response from a decoded forex payload, whichever cadence produced it.

Return

a response holding the parsed series, or one holding an error message if the payload was empty or was not a forex series

Parameters

stringObjectMap

the response body, already decoded from JSON into a map