get_packer library

Mixins

PackedModel

Typedefs

ModelFromJson<T> = T Function(Map<String, dynamic> json)

Exceptions / Errors

GetPackerDecodingException
GetPackerEncodingException
GetPackerException
Base exception type thrown by get_packer.
GetPackerInvalidExtPayloadException
Thrown when an ext payload is malformed (wrong length, inconsistent fields, etc).
GetPackerLimitExceededException
Thrown when an encoded value exceeds configured size limits.
GetPackerMaxDepthExceededException
Thrown when the nesting depth exceeds GetPackerConfig.maxDepth.
GetPackerTrailingBytesException
Thrown when a well-formed value is followed by unexpected bytes in a fixed-length ext.
GetPackerTruncatedInputException
Thrown when an input buffer ends before the decoder can read a full value.
GetPackerTypeMismatchException
Thrown when an API expects one decoded type but a different one was produced.
GetPackerUnknownPrefixException
Thrown when decoding a prefix byte that is not part of the supported wire format.
GetPackerUnsupportedTypeException
Thrown when attempting to encode a value of an unsupported runtime type.