PaymentsCanPurchaseStore.deserialize constructor

PaymentsCanPurchaseStore.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PaymentsCanPurchaseStore.deserialize(BinaryReader reader) {
  // Read [PaymentsCanPurchaseStore] fields.
  final purpose = reader.readObject() as InputStorePaymentPurposeBase;

  // Construct [PaymentsCanPurchaseStore] object.
  final returnValue = PaymentsCanPurchaseStore(purpose: purpose);

  // Now return the deserialized [PaymentsCanPurchaseStore].
  return returnValue;
}