decode static method
Implementation
static PaymentResult decode(Object result) {
result as List<Object?>;
return PaymentResult(
successInvoice: result[0] != null
? SuccessInvoice.decode(result[0]! as List<Object?>)
: null,
invalidInvoice: result[1] != null
? InvalidInvoice.decode(result[1]! as List<Object?>)
: null,
successPurchase: result[2] != null
? SuccessPurchase.decode(result[2]! as List<Object?>)
: null,
invalidPurchase: result[3] != null
? InvalidPurchase.decode(result[3]! as List<Object?>)
: null,
);
}