code: private function getConfiguratorOptions(Variation $variation)
      {
          $configuratorOptions = [];
          foreach ($variation->getProperties() as $property) {
              foreach ($property->getValues() as $value) {
                  $configuratorOptions[] = [
                      'groupId' => null,
                      'group' => $property->getName(),
                      'optionId' => null,
                      'option' => $value->getValue(),
                  ];
              }
          }
  
          return $configuratorOptions;
      }
docs: @param Variation $variation
  
  @return array