code: protected function pickMetadata($data)
      {
          $metadata = [];
          if (ArrayUtils::has($data, 'rows')) {
              $metadata = ArrayUtils::omit($data, 'rows');
          } else if (ArrayUtils::has($data, 'meta')) {
              $metadata = ArrayUtils::get($data, 'meta');
          }
  
          return new Entry($metadata);
      }
docs: Pick the metadata out of the raw data
  
  @param $data
  
  @return Entry