TParameter constructor
TParameter({})
Constructor for TParameter.
Ensures that inn is one of "query", "header", or "path".
Implementation
TParameter({
required this.name,
required this.inn,
required this.schema,
required this.required,
required this.type,
required this.allowEmptyValue,
required this.example,
required this.format,
}) : assert(
inn == "query" || inn == "header" || inn == "path",
'The "in" field must be either "query", "header", or "path"',
);