TransactionOutput constructor

TransactionOutput({
  1. String? assetId,
  2. Int64? amount,
  3. String? toAddress,
  4. String? changeAddress,
})

Implementation

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