convertFromPigeon static method

SKPaymentWrapper convertFromPigeon(
  1. SKPaymentMessage msg
)

Converts SKPaymentMessage into the dart equivalent

Implementation

static SKPaymentWrapper convertFromPigeon(SKPaymentMessage msg) {
  return SKPaymentWrapper(
      productIdentifier: msg.productIdentifier,
      applicationUsername: msg.applicationUsername,
      quantity: msg.quantity,
      simulatesAskToBuyInSandbox: msg.simulatesAskToBuyInSandbox,
      requestData: msg.requestData,
      paymentDiscount:
          SKPaymentDiscountWrapper.convertFromPigeon(msg.paymentDiscount));
}