JsonSerializableRegistry extension

on

Methods

registerJsonSerializable<T>({required T fromJson(Map<String, Object?> json), String? typeKey}) CacheDataCodecRegistry

Available on CacheDataCodecRegistry, provided by the JsonSerializableRegistry extension

Registers a serializer for a type with fromJson factory.
registerJsonSerializableList<T>({required T fromJson(Map<String, Object?> json), String? typeKey}) CacheDataCodecRegistry

Available on CacheDataCodecRegistry, provided by the JsonSerializableRegistry extension

Registers a serializer for List<T> where T has fromJson factory.