ProtoTxReceipts_ProtoTxReceipt constructor
ProtoTxReceipts_ProtoTxReceipt({})
Implementation
factory ProtoTxReceipts_ProtoTxReceipt({
$core.List<$core.int>? contract,
$core.bool? success,
$fixnum.Int64? gasUsed,
$core.List<$core.int>? from,
$core.String? error,
$core.List<$core.int>? gasCost,
$core.List<$core.int>? txHash,
$core.Iterable<ProtoTxReceipts_ProtoEvent>? events,
$core.String? method,
}) {
final _result = create();
if (contract != null) {
_result.contract = contract;
}
if (success != null) {
_result.success = success;
}
if (gasUsed != null) {
_result.gasUsed = gasUsed;
}
if (from != null) {
_result.from = from;
}
if (error != null) {
_result.error = error;
}
if (gasCost != null) {
_result.gasCost = gasCost;
}
if (txHash != null) {
_result.txHash = txHash;
}
if (events != null) {
_result.events.addAll(events);
}
if (method != null) {
_result.method = method;
}
return _result;
}