toModel method

OperationCharge toModel()

Constructs a new OperationCharge from this OperationChargeMixin.

Implementation

OperationCharge toModel() => OperationCharge(
  id: id,
  num: this.num,
  status: status,
  origin: origin,
  direction: direction,
  amount: amount.toModel(),
  holdUntil: holdUntil,
  createdAt: createdAt,
  canceled: canceled?.toModel(),
  reason: reason,
);