nonNull

fun nonNull(): JsonAdapter<T>

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

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