Skip to content

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. #7

@nekromoff

Description

@nekromoff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions