TxResponse constructor
TxResponse({})
Implementation
factory TxResponse({
$fixnum.Int64? height,
$core.String? txhash,
$core.String? codespace,
$core.int? code,
$core.String? data,
$core.String? rawLog,
$core.Iterable<ABCIMessageLog>? logs,
$core.String? info,
$fixnum.Int64? gasWanted,
$fixnum.Int64? gasUsed,
$1.Any? tx,
$core.String? timestamp,
$core.Iterable<$0.Event>? events,
}) {
final _result = create();
if (height != null) {
_result.height = height;
}
if (txhash != null) {
_result.txhash = txhash;
}
if (codespace != null) {
_result.codespace = codespace;
}
if (code != null) {
_result.code = code;
}
if (data != null) {
_result.data = data;
}
if (rawLog != null) {
_result.rawLog = rawLog;
}
if (logs != null) {
_result.logs.addAll(logs);
}
if (info != null) {
_result.info = info;
}
if (gasWanted != null) {
_result.gasWanted = gasWanted;
}
if (gasUsed != null) {
_result.gasUsed = gasUsed;
}
if (tx != null) {
_result.tx = tx;
}
if (timestamp != null) {
_result.timestamp = timestamp;
}
if (events != null) {
_result.events.addAll(events);
}
return _result;
}