Transfer constructor

Transfer({
  1. String? toAddress,
  2. String? changeAddress,
  3. Int64? amount,
  4. TokenBundle? tokenAmount,
  5. bool? useMaxAmount,
  6. Int64? forceFee,
})

Implementation

factory Transfer({
  $core.String? toAddress,
  $core.String? changeAddress,
  $fixnum.Int64? amount,
  TokenBundle? tokenAmount,
  $core.bool? useMaxAmount,
  $fixnum.Int64? forceFee,
}) {
  final _result = create();
  if (toAddress != null) {
    _result.toAddress = toAddress;
  }
  if (changeAddress != null) {
    _result.changeAddress = changeAddress;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (tokenAmount != null) {
    _result.tokenAmount = tokenAmount;
  }
  if (useMaxAmount != null) {
    _result.useMaxAmount = useMaxAmount;
  }
  if (forceFee != null) {
    _result.forceFee = forceFee;
  }
  return _result;
}