convertFromPigeon static method

SKPaymentTransactionWrapper convertFromPigeon(
  1. SKPaymentTransactionMessage msg
)

Converts SKPaymentTransactionMessages into the dart equivalent

Implementation

static SKPaymentTransactionWrapper convertFromPigeon(
    SKPaymentTransactionMessage msg) {
  return SKPaymentTransactionWrapper(
      payment: SKPaymentWrapper.convertFromPigeon(msg.payment),
      transactionState: SKPaymentTransactionStateWrapper.convertFromPigeon(
          msg.transactionState),
      originalTransaction: msg.originalTransaction == null
          ? null
          : convertFromPigeon(msg.originalTransaction!),
      transactionTimeStamp: msg.transactionTimeStamp,
      transactionIdentifier: msg.transactionIdentifier,
      error:
          msg.error == null ? null : SKError.convertFromPigeon(msg.error!));
}