code: public static function createMap(array $config)
      {
          $map = [];
          foreach ($config as $name => $argConfig) {
              if (! is_array($argConfig)) {
                  $argConfig = ['type' => $argConfig];
              }
              $map[] = new self($argConfig + ['name' => $name]);
          }
  
          return $map;
      }
docs: @param mixed[] $config
  
  @return FieldArgument[]