json-mapper
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.
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