ProtoTxReceipts_ProtoTxReceipt constructor

ProtoTxReceipts_ProtoTxReceipt({
  1. List<int>? contract,
  2. bool? success,
  3. Int64? gasUsed,
  4. List<int>? from,
  5. String? error,
  6. List<int>? gasCost,
  7. List<int>? txHash,
  8. Iterable<ProtoTxReceipts_ProtoEvent>? events,
  9. String? method,
})

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;
}