override this for more complex data types than the ones supported by shared_preferences.
@protected String? serialize() { return null; }