code: public function toArray(): array
      {
          $result = array();
          $data = $this->data;
  
          foreach ($data as $key => $value) {
              if ($value instanceof ConfigurationInterface) {
                  $value = $value->toArray();
              }
              
              $result[$key] = $value;
          }
  
          return $result;
      }
docs: {@inheritdoc}