convertFromPigeon static method

SKPaymentDiscountWrapper? convertFromPigeon(
  1. SKPaymentDiscountMessage? msg
)

Converts SKPaymentDiscountMessage into the dart equivalent

Implementation

static SKPaymentDiscountWrapper? convertFromPigeon(
    SKPaymentDiscountMessage? msg) {
  if (msg == null) {
    return null;
  }
  return SKPaymentDiscountWrapper(
      identifier: msg.identifier,
      keyIdentifier: msg.keyIdentifier,
      nonce: msg.nonce,
      signature: msg.signature,
      timestamp: msg.timestamp);
}