readNull method

T? readNull(
  1. dynamic value,
  2. TypeInfo type,
  3. JsonSerializerOptions options
)

Converts a null JSON value to type T.

Implementation

T? readNull(dynamic value, TypeInfo type, JsonSerializerOptions options) {
  if (value == null) {
    return null;
  }

  return read(value, type, options);
}