protected internal static bool TryReadProperty(ref Utf8JsonReader reader, DateTimeQueryPropertyInfo obj, JsonSerializerOptions options) { if (reader.ValueTextEquals(nameof(obj.IsDate))) { obj.IsDate = reader.ReadBoolean(); return(true); } return(QueryPropertyInfo.TryReadProperty(ref reader, obj, options)); }
protected internal static bool TryReadProperty(ref Utf8JsonReader reader, BooleanQueryPropertyInfo obj, JsonSerializerOptions options) { if (reader.ValueTextEquals(nameof(obj.TrueString))) { obj.TrueString = reader.ReadString(); return(true); } if (reader.ValueTextEquals(nameof(obj.FalseString))) { obj.FalseString = reader.ReadString(); return(true); } return(QueryPropertyInfo.TryReadProperty(ref reader, obj, options)); }
protected internal static bool TryReadProperty(ref Utf8JsonReader reader, EnumQueryPropertyInfo obj, JsonSerializerOptions options) { if (reader.ValueTextEquals(nameof(obj.IsFlags))) { obj.IsFlags = reader.ReadBoolean(); return(true); } if (reader.ValueTextEquals(nameof(obj.Fields))) { obj.Fields = new EnumFieldInfoJsonConverter().ReadList(ref reader, options); return(true); } return(QueryPropertyInfo.TryReadProperty(ref reader, obj, options)); }