code: private function getAgeRestrictionAsAttribute(array $product)
      {
          $attribute = new Attribute();
          $attribute->setKey('ageRestriction');
          $attribute->setValue((string) $product['ageRestriction']);
  
          return $attribute;
      }
docs: @param array $product
  
  @return Attribute