OpenApiContentType class
Represents the content type header describing content encoding for request and responses.
Constructors
- OpenApiContentType.parse(String value)
-
Parses the value as returned by toString
factory
Properties
- contentType → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isJson → bool
-
no setter
- isString → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
matches(
OpenApiContentType contentType) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Reverse of parse
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
allKnown
→ const List<
OpenApiContentType> - html → const OpenApiContentType
- json → const OpenApiContentType
- octetStream → const OpenApiContentType
- textPlain → const OpenApiContentType
- urlencoded → const OpenApiContentType