nonNull

Returns a JSON adapter equal to this JSON adapter, but that refuses null values. If null is read or written this will throw a JsonDataException .

Note that this adapter will not usually be invoked for absent values and so those must be handled elsewhere. This should only be used to fail on explicit nulls.

fun nonNull(): JsonAdapter<T>