diff --git a/src/Vogen/Templates/AnyOtherType/AnyOtherType_NewtonsoftJsonConverterReferenceType.cs b/src/Vogen/Templates/AnyOtherType/AnyOtherType_NewtonsoftJsonConverterReferenceType.cs index f09a442b8e..edcb5948b2 100644 --- a/src/Vogen/Templates/AnyOtherType/AnyOtherType_NewtonsoftJsonConverterReferenceType.cs +++ b/src/Vogen/Templates/AnyOtherType/AnyOtherType_NewtonsoftJsonConverterReferenceType.cs @@ -15,6 +15,6 @@ public override void WriteJson(Newtonsoft.Json.JsonWriter writer, object value, public override object ReadJson(Newtonsoft.Json.JsonReader reader, System.Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer) { var result = serializer.Deserialize(reader); - return result != null ? VOTYPE.Deserialize(result) : null; + return result is not null ? VOTYPE.Deserialize(result) : null; } } \ No newline at end of file