convertFromPigeon static method
Convert from SKProductDiscountMessage
to SKProductDiscountWrapper
Implementation
static SKProductDiscountWrapper convertFromPigeon(
SKProductDiscountMessage msg) {
return SKProductDiscountWrapper(
price: msg.price,
priceLocale: SKPriceLocaleWrapper.convertFromPigeon(msg.priceLocale),
numberOfPeriods: msg.numberOfPeriods,
paymentMode:
SKProductDiscountPaymentMode.convertFromPigeon(msg.paymentMode),
subscriptionPeriod:
SKProductSubscriptionPeriodWrapper.convertFromPigeon(
msg.subscriptionPeriod),
identifier: msg.identifier,
type: SKProductDiscountType.convertFromPigeon(msg.type));
}