toModel method

OperationReward toModel()

Constructs a new OperationReward from this OperationRewardMixin.

Implementation

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