APISecurityScheme.apiKey(String apiKeyName, APIParameterLocation apiKeyLocation)

Source

APISecurityScheme.apiKey(this.apiKeyName, this.apiKeyLocation) {
  type = "apiKey";
}