TipOfChainResponse constructor

TipOfChainResponse({
  1. Certification? certification,
  2. BlockHeight? chainLength,
})

Implementation

factory TipOfChainResponse({
  Certification? certification,
  BlockHeight? chainLength,
}) {
  final _result = create();
  if (certification != null) {
    _result.certification = certification;
  }
  if (chainLength != null) {
    _result.chainLength = chainLength;
  }
  return _result;
}