Transaction constructor
Transaction({})
Implementation
factory Transaction({
$core.int? type,
$core.int? timestamp,
$core.String? remark,
$core.List<$core.int>? txData,
$core.Iterable<TransactionCoinFrom>? input,
$core.Iterable<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.addAll(input);
}
if (output != null) {
$result.output.addAll(output);
}
if (txSigs != null) {
$result.txSigs = txSigs;
}
if (hash != null) {
$result.hash = hash;
}
return $result;
}