fromString static method
Creates a ParameterLocation from a string value.
The lookup is case-insensitive, so "Query", "QUERY",
and "query" will all resolve to ParameterLocation.query.
Throws an ArgumentError if the input does not match any valid parameter location.
Implementation
static ParameterLocation fromString(String value) {
return ParameterLocation.values.firstWhere(
(e) => e.name.toLowerCase() == value.toLowerCase(),
orElse: () => throw ArgumentError('Invalid ParameterLocation: $value'),
);
}