public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { if (reader.TokenType == JsonToken.Null) { return(null !); } TID id = (TID)_idConverter.ReadJson(reader, typeof(TID), null, serializer); return(Ref.FromIdentifier <TTarget, TID>(id)); }