GetBlockchainInfoResponse constructor

GetBlockchainInfoResponse({
  1. GetBlockchainInfoResponse_BitcoinNet? bitcoinNet,
  2. int? bestHeight,
  3. List<int>? bestBlockHash,
  4. double? difficulty,
  5. Int64? medianTime,
  6. bool? txIndex,
  7. bool? addrIndex,
  8. bool? slpIndex,
  9. bool? slpGraphsearch,
})

Implementation

factory GetBlockchainInfoResponse({
  GetBlockchainInfoResponse_BitcoinNet? bitcoinNet,
  $core.int? bestHeight,
  $core.List<$core.int>? bestBlockHash,
  $core.double? difficulty,
  $fixnum.Int64? medianTime,
  $core.bool? txIndex,
  $core.bool? addrIndex,
  $core.bool? slpIndex,
  $core.bool? slpGraphsearch,
}) {
  final _result = create();
  if (bitcoinNet != null) {
    _result.bitcoinNet = bitcoinNet;
  }
  if (bestHeight != null) {
    _result.bestHeight = bestHeight;
  }
  if (bestBlockHash != null) {
    _result.bestBlockHash = bestBlockHash;
  }
  if (difficulty != null) {
    _result.difficulty = difficulty;
  }
  if (medianTime != null) {
    _result.medianTime = medianTime;
  }
  if (txIndex != null) {
    _result.txIndex = txIndex;
  }
  if (addrIndex != null) {
    _result.addrIndex = addrIndex;
  }
  if (slpIndex != null) {
    _result.slpIndex = slpIndex;
  }
  if (slpGraphsearch != null) {
    _result.slpGraphsearch = slpGraphsearch;
  }
  return _result;
}