I don't see an adapter for making a NullableInt or NullableFloat. The fromJson needs to have a parameter type that has a known adapter, and the toJson needs to have a return type that has a known adapter. Looks like the adapters above have the opposite.