MapSaver

inline fun <T, R> MapSaver(delegate: Saver<R>, crossinline from: suspend (R) -> T?, crossinline to: suspend (T?) -> R?): Saver<T>

A Saver that maps the saved state to a value of T before passing it to the delegate.

It will not map null values.