code: protected function decodeBlocks($values)
      {
          $result = array();
          foreach ($values as $value) {
              $block = json_decode($value, true);
              $result[] = $block["name"];
          }
  
          return $result;
      }
docs: Decodes the given blocks
  @param $values
  
  @return array