code: public function map($resource, array $data): ResourceClass
      {
          return new ResourceClass(
              \array_map(function ($item) {
                  return $this->builder->build($item);
              }, $data['items']),
              $data['total'],
              $data['limit'],
              $data['skip']
          );
      }
docs: {@inheritdoc}