utils/type_adapter library

Classes

JsonEncodableCodec
Codec to/from a json encodable format, custom types being handled by the type adapters
JsonEncodableDecoder
Decoder.
JsonEncodableEncoder
Encoder.
SembastTypeAdapter<S, T>
Base type adapter codec

Properties

sembastBlobAdapter SembastTypeAdapter<Blob, String>
Simple blob adapter to convert to base64 string.
final
sembastCodecDefault SembastCodec
Json Codec with supports for DateTime and Blobs (UInt8List)
getter/setter pair
sembastDefaultJsonEncodableCodec JsonEncodableCodec
Default jsonEncodableCodec
final
sembastDefaultTypeAdapters List<SembastTypeAdapter<Object, String>>
Support Timestamp and Blob
final
sembastTimestampAdapter SembastTypeAdapter<Timestamp, String>
Simple timestamp adapter to convert to iso8601 string.
final

Functions

sembastCodecFromJsonEncodable(SembastCodec? sembastCodec, Object value) Object
Decode a sembast value from json encodable format.
sembastCodecToJsonEncodable(SembastCodec? sembastCodec, Object value) Object
Encode a sembast value to json encodable format.