of

public static SearchResponse of(Map<String, Object> data)

Builds a response from a decoded SYMBOL_SEARCH payload.

Return

a response holding the parsed matches, or one holding an error message if the payload was empty or was not a list of matches

Parameters

data

the response body, already decoded from JSON into a map