decodeResponse static method

ATHMovilPaymentResponse? decodeResponse(
  1. String payment
)

Implementation

static ATHMovilPaymentResponse? decodeResponse(String payment) {
  try {
    Map<String, dynamic>? map = jsonDecode(payment);
    return ATHMovilPaymentResponse.fromMap(map);
  } catch (e) {
    _responseListener!.onPaymentException(
        AppLocalizations.current.athmExceptionTitle,
        AppLocalizations.current.athmExceptionMessage);
  }
  return null;
}