String parameterLocationStringForType(APIParameterLocation parameterLocation)

Source

static String parameterLocationStringForType(
    APIParameterLocation parameterLocation) {
  switch (parameterLocation) {
    case APIParameterLocation.query:
      return "query";
    case APIParameterLocation.header:
      return "header";
    case APIParameterLocation.path:
      return "path";
    case APIParameterLocation.formData:
      return "formData";
    case APIParameterLocation.cookie:
      return "cookie";
    case APIParameterLocation.body:
      return "body";
  }
  return null;
}