TransactionOutputPlan constructor

TransactionOutputPlan({
  1. Int64? amount,
  2. Int64? availableAmount,
  3. Int64? change,
  4. String? assetId,
  5. String? toAddress,
  6. String? changeAddress,
})

Implementation

factory TransactionOutputPlan({
  $fixnum.Int64? amount,
  $fixnum.Int64? availableAmount,
  $fixnum.Int64? change,
  $core.String? assetId,
  $core.String? toAddress,
  $core.String? changeAddress,
}) {
  final _result = create();
  if (amount != null) {
    _result.amount = amount;
  }
  if (availableAmount != null) {
    _result.availableAmount = availableAmount;
  }
  if (change != null) {
    _result.change = change;
  }
  if (assetId != null) {
    _result.assetId = assetId;
  }
  if (toAddress != null) {
    _result.toAddress = toAddress;
  }
  if (changeAddress != null) {
    _result.changeAddress = changeAddress;
  }
  return _result;
}