toModel method

OperationEarnDonation toModel()

Constructs a new OperationCharge from this OperationEarnDonationMixin.

Implementation

OperationEarnDonation toModel() => OperationEarnDonation(
  id: id,
  num: this.num,
  status: status,
  origin: origin,
  direction: direction,
  amount: amount.toModel(),
  holdUntil: holdUntil,
  createdAt: createdAt,
  canceled: canceled?.toModel(),
  chatItemId: chatItem?.node.id,
  chatId: chat?.id,
  donationId: donationId,
  customerId: customer.id,
);