convertFromPigeon static method
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!));
}