Show / Hide Table of Contents

Class DynamoAttributeValueConverter

The DynamoAttributeValueConverter class converts a DynamoDB attribute value to JSON output.

Inheritance
System.Object
System.Text.Json.Serialization.JsonConverter
System.Text.Json.Serialization.JsonConverter<Amazon.DynamoDBv2.Model.AttributeValue>
DynamoAttributeValueConverter
Namespace: LambdaSharp.DynamoDB.Serialization.Utility
Assembly: LambdaSharp.DynamoDB.Serialization.dll
Syntax
public class DynamoAttributeValueConverter : JsonConverter<AttributeValue>

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

This operation is NOT supported.

Declaration
public override AttributeValue Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
System.Text.Json.Utf8JsonReader reader

The reader.

System.Type typeToConvert

The type to convert.

System.Text.Json.JsonSerializerOptions options

An object that specifies serialization options to use.

Returns
Type Description
Amazon.DynamoDBv2.Model.AttributeValue

The converted value.

Overrides
System.Text.Json.Serialization.JsonConverter<Amazon.DynamoDBv2.Model.AttributeValue>.Read(System.Text.Json.Utf8JsonReader, System.Type, System.Text.Json.JsonSerializerOptions)

Write(Utf8JsonWriter, AttributeValue, JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, AttributeValue value, JsonSerializerOptions options)
Parameters
Type Name Description
System.Text.Json.Utf8JsonWriter writer

The writer to write to.

Amazon.DynamoDBv2.Model.AttributeValue value

The value to convert to JSON.

System.Text.Json.JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
System.Text.Json.Serialization.JsonConverter<Amazon.DynamoDBv2.Model.AttributeValue>.Write(System.Text.Json.Utf8JsonWriter, Amazon.DynamoDBv2.Model.AttributeValue, System.Text.Json.JsonSerializerOptions)
In This Article
Back to top Generated by DocFX