mime_annotations library

Classes

MediaDecoder
Annotate a parser function for global use by Hopper serializers.
MediaEncoder
Annotate a serializer function for a Response body.
MediaType
A class representing an HTTP media type, as used in Accept and Content-Type headers.

Constants

ascii → const AsciiCodec
An instance of the default implementation of the AsciiCodec.
latin1 → const Latin1Codec
An instance of the default implementation of the Latin1Codec.
utf8 → const Utf8Codec
An instance of the default implementation of the Utf8Codec.

Functions

jsonDecode(String source, {Object? reviver(Object? key, Object? value)?}) → dynamic
Parses the string and returns the resulting Json object.
jsonEncode(Object? object, {Object? toEncodable(Object? nonEncodable)?}) String
Converts object to a JSON string.