typeOrNull

Returns the value of the type field if present, otherwise null.