json-mapper icon indicating copy to clipboard operation
json-mapper copied to clipboard

Brick \ JsonMapper \ JsonMapperException Unexpected property "labels" in JSON data: Google\Service\MyBusinessBusinessInformation\Location::__construct() does not have a corresponding $labels parameter. If you want to allow extra properties, change the $onExtraProperties option.

Open nekromoff opened this issue 2 years ago • 0 comments

That class is declared as:

namespace Google\Service\MyBusinessBusinessInformation;

class Location extends \Google\Collection
{
  protected $collection_key = 'serviceItems';
  protected $adWordsLocationExtensionsType = AdWordsLocationExtensions::class;
  protected $adWordsLocationExtensionsDataType = '';
  protected $categoriesType = Categories::class;
  protected $categoriesDataType = '';
  /**
   * @var string[]
   */
  public $labels;

... See: https://github.com/googleapis/google-api-php-client-services/blob/main/src/MyBusinessBusinessInformation/Location.php#L30C12-L30C12

nekromoff avatar Nov 15 '23 13:11 nekromoff