NotifyRequest constructor

NotifyRequest({
  1. BlockHeight? blockHeight,
  2. ICPTs? maxFee,
  3. Subaccount? fromSubaccount,
  4. PrincipalId? toCanister,
  5. Subaccount? toSubaccount,
})

Implementation

factory NotifyRequest({
  BlockHeight? blockHeight,
  ICPTs? maxFee,
  Subaccount? fromSubaccount,
  $0.PrincipalId? toCanister,
  Subaccount? toSubaccount,
}) {
  final _result = create();
  if (blockHeight != null) {
    _result.blockHeight = blockHeight;
  }
  if (maxFee != null) {
    _result.maxFee = maxFee;
  }
  if (fromSubaccount != null) {
    _result.fromSubaccount = fromSubaccount;
  }
  if (toCanister != null) {
    _result.toCanister = toCanister;
  }
  if (toSubaccount != null) {
    _result.toSubaccount = toSubaccount;
  }
  return _result;
}