Signature of callbacks for json serializer.
typedef JsonSerializer = Map<String, dynamic> Function(T Function<T>() factory);