code: private function getMethod($jsonRequest): MethodMetaData
      {
          $method = $jsonRequest->getMethod();
  
          if (false === $this->mapper->hasMethod($method)) {
              throw new Exceptions\MethodNotFoundException($jsonRequest->getMethod());
          }
  
          return $this->mapper->getMethod($method);
      }
docs: @param JsonRequest $jsonRequest
  
  @return MethodMetaData