Success
A model that represents a success response from the API.
In most cases, data
is a string representation of a JSON object from the Forage API, for example:
if (response is ForageApiResponse.Success) {
response.data // { "ref": "abcde123", ... }
}
Content copied to clipboard
Use the toPaymentMethod, toBalance, or toPayment methods to convert the data string to a PaymentMethod, Balance, or Payment instance, respectively.