serialize property

SerializeCallback<E> serialize
final

Converter function to serialize type E into JSON.

This function is called when storing the item to convert the Dart object into a String representation that can be persisted.

The function should:

  • Accept an instance of E
  • Return a String representing the data
  • Include all necessary data for deserialization

Implementation

final SerializeCallback<E> serialize;