code: func (s *ServiceNode) ToNodeService() *NodeService {
  	return &NodeService{
  		Kind:              s.ServiceKind,
  		ID:                s.ServiceID,
  		Service:           s.ServiceName,
  		Tags:              s.ServiceTags,
  		Address:           s.ServiceAddress,
  		Port:              s.ServicePort,
  		Meta:              s.ServiceMeta,
  		Weights:           &s.ServiceWeights,
  		EnableTagOverride: s.ServiceEnableTagOverride,
  		Proxy:             s.ServiceProxy,
  		Connect:           s.ServiceConnect,
  		RaftIndex: RaftIndex{
  			CreateIndex: s.CreateIndex,
  			ModifyIndex: s.ModifyIndex,
  		},
  	}
  }
docs: // ToNodeService converts the given service node to a node service.