Send constructor

Send({
  1. AccountIdentifier? from,
  2. AccountIdentifier? to,
  3. ICPTs? amount,
  4. ICPTs? maxFee,
})

Implementation

factory Send({
  AccountIdentifier? from,
  AccountIdentifier? to,
  ICPTs? amount,
  ICPTs? maxFee,
}) {
  final _result = create();
  if (from != null) {
    _result.from = from;
  }
  if (to != null) {
    _result.to = to;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (maxFee != null) {
    _result.maxFee = maxFee;
  }
  return _result;
}