Transaction constructor

Transaction({
  1. int? type,
  2. int? timestamp,
  3. String? remark,
  4. List<int>? txData,
  5. TransactionCoinFrom? input,
  6. TransactionCoinTo? output,
  7. Signature? txSigs,
  8. int? hash,
})

Implementation

factory Transaction({
  $core.int? type,
  $core.int? timestamp,
  $core.String? remark,
  $core.List<$core.int>? txData,
  TransactionCoinFrom? input,
  TransactionCoinTo? output,
  Signature? txSigs,
  $core.int? hash,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (remark != null) {
    _result.remark = remark;
  }
  if (txData != null) {
    _result.txData = txData;
  }
  if (input != null) {
    _result.input = input;
  }
  if (output != null) {
    _result.output = output;
  }
  if (txSigs != null) {
    _result.txSigs = txSigs;
  }
  if (hash != null) {
    _result.hash = hash;
  }
  return _result;
}