toModel method

OperationGrant toModel()

Constructs a new OperationGrant from this OperationGrantMixin.

Implementation

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