internal RestAbstractChain(IRestNodeInternals rest, ChainIdModel chainId)
 {
     if (chainId == null)
     {
         throw new ArgumentNullException(nameof(chainId));
     }
     _rest          = rest ?? throw new ArgumentNullException(nameof(rest));
     Id             = chainId.Id;
     Name           = chainId.Name;
     _records       = new RecordsImplementation(this);
     _recordsAsJson = new RecordsAsJsonImplementation(this);
     _interlockings = new InterlockingsImplementation(this);
 }
 internal RestChain(RestNode rest, ChainIdModel chainId) : base(rest, chainId) => _jsonStore = new JsonStoreImplementation(this);