TransactionNotificationRequest constructor

TransactionNotificationRequest({
  1. PrincipalId? from,
  2. Subaccount? fromSubaccount,
  3. PrincipalId? to,
  4. Subaccount? toSubaccount,
  5. BlockHeight? blockHeight,
  6. ICPTs? amount,
  7. Memo? memo,
})

Implementation

factory TransactionNotificationRequest({
  $0.PrincipalId? from,
  Subaccount? fromSubaccount,
  $0.PrincipalId? to,
  Subaccount? toSubaccount,
  BlockHeight? blockHeight,
  ICPTs? amount,
  Memo? memo,
}) {
  final _result = create();
  if (from != null) {
    _result.from = from;
  }
  if (fromSubaccount != null) {
    _result.fromSubaccount = fromSubaccount;
  }
  if (to != null) {
    _result.to = to;
  }
  if (toSubaccount != null) {
    _result.toSubaccount = toSubaccount;
  }
  if (blockHeight != null) {
    _result.blockHeight = blockHeight;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (memo != null) {
    _result.memo = memo;
  }
  return _result;
}