parameterLocationFromOpenApi function

ParameterLocation parameterLocationFromOpenApi(
  1. APIParameterLocation location
)

Implementation

ParameterLocation parameterLocationFromOpenApi(APIParameterLocation location) {
  switch (location) {
    case APIParameterLocation.header:
      return ParameterLocation.header;
    case APIParameterLocation.query:
      return ParameterLocation.query;
    case APIParameterLocation.path:
      return ParameterLocation.path;
    case APIParameterLocation.cookie:
      throw UnimplementedError('Cookie parameters are not supported');
  }
}