original_string: private static function _groupResponseFromFields(&$json, &$fields)
      {
          $result = new Api\GroupResult();
          $result->setChildGroups($fields->child_groups);
          $result->setGroupId($fields->id);
          $result->setSize($fields->size);
          $result->setCreatedAt(
              Deserialize::_dateTime($json, $fields->created_at)
          );
          $result->setModifiedAt(
              Deserialize::_dateTime($json, $fields->modified_at)
          );
  
          if (isset($fields->name)) {
              $result->setName($fields->name);
          }
  
          if (isset($fields->auto_update)) {
              $result->setAutoUpdate(
                  Deserialize::_autoUpdateFromFields($fields->auto_update)
              );
          }
  
          return $result;
      }
code: private static function _groupResponseFromFields(&$json, &$fields)
      {
          $result = new Api\GroupResult();
          $result->setChildGroups($fields->child_groups);
          $result->setGroupId($fields->id);
          $result->setSize($fields->size);
          $result->setCreatedAt(
              Deserialize::_dateTime($json, $fields->created_at)
          );
          $result->setModifiedAt(
              Deserialize::_dateTime($json, $fields->modified_at)
          );
  
          if (isset($fields->name)) {
              $result->setName($fields->name);
          }
  
          if (isset($fields->auto_update)) {
              $result->setAutoUpdate(
                  Deserialize::_autoUpdateFromFields($fields->auto_update)
              );
          }
  
          return $result;
      }
code_tokens: private static function _groupResponseFromFields ( & $ json , & $ fields ) { $ result = new Api \ GroupResult ( ) ; $ result -> setChildGroups ( $ fields -> child_groups ) ; $ result -> setGroupId ( $ fields -> id ) ; $ result -> setSize ( $ fields -> size ) ; $ result -> setCreatedAt ( Deserialize :: _dateTime ( $ json , $ fields -> created_at ) ) ; $ result -> setModifiedAt ( Deserialize :: _dateTime ( $ json , $ fields -> modified_at ) ) ; if ( isset ( $ fields -> name ) ) { $ result -> setName ( $ fields -> name ) ; } if ( isset ( $ fields -> auto_update ) ) { $ result -> setAutoUpdate ( Deserialize :: _autoUpdateFromFields ( $ fields -> auto_update ) ) ; } return $ result ; }
docstring: Helper that creates a group response object from the given
  fields.
  
  @param string $json   original JSON message
  @param object $fields the fields as generated by `json_decode`
  
  @return Api\GroupResult the created group response
docstring_tokens: Helper that creates a group response object from the given fields .