Function that serialize the data to a JSON form.
typedef ValueDeconstructor<T> = Map<String, dynamic>? Function(T?);