convertFromPigeon static method
Converts SKPaymentTransactionStateMessages
into the dart equivalent
Implementation
static SKPaymentTransactionStateWrapper convertFromPigeon(
SKPaymentTransactionStateMessage msg) {
switch (msg) {
case SKPaymentTransactionStateMessage.purchased:
return SKPaymentTransactionStateWrapper.purchased;
case SKPaymentTransactionStateMessage.purchasing:
return SKPaymentTransactionStateWrapper.purchasing;
case SKPaymentTransactionStateMessage.failed:
return SKPaymentTransactionStateWrapper.failed;
case SKPaymentTransactionStateMessage.restored:
return SKPaymentTransactionStateWrapper.restored;
case SKPaymentTransactionStateMessage.deferred:
return SKPaymentTransactionStateWrapper.deferred;
case SKPaymentTransactionStateMessage.unspecified:
return SKPaymentTransactionStateWrapper.unspecified;
}
}