Class LdJsonConverters.AttributeRefConverter
The JSON converter for AttributeRef.
Inheritance
System.Object
LdJsonConverters.AttributeRefConverter
Namespace: LaunchDarkly.Sdk.Json
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
public sealed class AttributeRefConverter : JsonConverter<AttributeRef>
Constructors
AttributeRefConverter()
Declaration
public AttributeRefConverter()
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Declaration
public override AttributeRef Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Json.Utf8JsonReader | reader | |
System.Type | typeToConvert | |
System.Text.Json.JsonSerializerOptions | options |
Returns
Type | Description |
---|---|
AttributeRef |
Write(Utf8JsonWriter, AttributeRef, JsonSerializerOptions)
Declaration
public override void Write(Utf8JsonWriter writer, AttributeRef value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Json.Utf8JsonWriter | writer | |
AttributeRef | value | |
System.Text.Json.JsonSerializerOptions | options |