SearchTxsResult constructor

SearchTxsResult({
  1. Int64? totalCount,
  2. Int64? count,
  3. Int64? pageNumber,
  4. Int64? pageTotal,
  5. Int64? limit,
  6. Iterable<TxResponse>? txs,
})

Implementation

factory SearchTxsResult({
  $fixnum.Int64? totalCount,
  $fixnum.Int64? count,
  $fixnum.Int64? pageNumber,
  $fixnum.Int64? pageTotal,
  $fixnum.Int64? limit,
  $core.Iterable<TxResponse>? txs,
}) {
  final _result = create();
  if (totalCount != null) {
    _result.totalCount = totalCount;
  }
  if (count != null) {
    _result.count = count;
  }
  if (pageNumber != null) {
    _result.pageNumber = pageNumber;
  }
  if (pageTotal != null) {
    _result.pageTotal = pageTotal;
  }
  if (limit != null) {
    _result.limit = limit;
  }
  if (txs != null) {
    _result.txs.addAll(txs);
  }
  return _result;
}