ApiServiceResponseHelpers extension

Provides helper methods for HttpResponses returned by ApiService.

on

Properties

failed → bool
Returns true if the response indicates failure. Otherwise false.
read-only
success → bool
Returns true if the response indicates success. Otherwise false.
read-only

Methods

expectMultiple() → List<JSON>
Returns the List of JSON objects in the response body.
expectSingle() → JSON
Returns the single JSON object in the response body.