Class DynamoJsonElementConverter
The DynamoJsonElement
value to/from a DynamoDB attribute value.
Implements
Inherited Members
Namespace: LambdaSharp.DynamoDB.Serialization.Converters
Assembly: LambdaSharp.DynamoDB.Serialization.dll
Syntax
public class DynamoJsonElementConverter : ADynamoAttributeConverter, IDynamoAttributeConverter
Fields
Instance
The Instance class field exposes a reusable instance of the class.
Declaration
public static readonly DynamoJsonElementConverter Instance
Field Value
Type | Description |
---|---|
Dynamo |
Methods
CanConvert(Type)
The Can
Declaration
public override bool CanConvert(Type typeToConvert)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeToConvert | The type to convert. |
Returns
Type | Description |
---|---|
System. |
|
Overrides
FromBinary(MemoryStream, Type, DynamoSerializerOptions)
The From
Declaration
public override object FromBinary(MemoryStream value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
FromBinarySet(List<MemoryStream>, Type, DynamoSerializerOptions)
The FromBinarySet(List<MemoryStream>, Type, DynamoSerializerOptions) method converts a DynamoDB BS attribute value to the type of the converter.
Declaration
public override object FromBinarySet(List<MemoryStream> value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
FromBool(Boolean, Type, DynamoSerializerOptions)
The From
Declaration
public override object FromBool(bool value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
FromList(List<AttributeValue>, Type, DynamoSerializerOptions)
The FromList(List<AttributeValue>, Type, DynamoSerializerOptions) method converts a DynamoDB L attribute value to the type of the converter.
Declaration
public override object FromList(List<AttributeValue> value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
FromMap(Dictionary<String, AttributeValue>, Type, DynamoSerializerOptions)
The FromMap(Dictionary<String, AttributeValue>, Type, DynamoSerializerOptions) method converts a DynamoDB M attribute value to the type of the converter.
Declaration
public override object FromMap(Dictionary<string, AttributeValue> value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
FromNumber(String, Type, DynamoSerializerOptions)
The From
Declaration
public override object FromNumber(string value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
FromNumberSet(List<String>, Type, DynamoSerializerOptions)
The FromNumberSet(List<String>, Type, DynamoSerializerOptions) method converts a DynamoDB NS attribute value to the type of the converter.
Declaration
public override object FromNumberSet(List<string> value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
FromString(String, Type, DynamoSerializerOptions)
The From
Declaration
public override object FromString(string value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
FromStringSet(List<String>, Type, DynamoSerializerOptions)
The FromStringSet(List<String>, Type, DynamoSerializerOptions) method converts a DynamoDB SS attribute value to the type of the converter.
Declaration
public override object FromStringSet(List<string> value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The DynamoDB attribute value to convert. |
System. |
targetType | The expected return type. |
Dynamo |
options | The deserialization options. |
Returns
Type | Description |
---|---|
System. |
An instance of type |
Overrides
ToAttributeValue(Object, Type, DynamoSerializerOptions)
The To
Declaration
public override AttributeValue ToAttributeValue(object value, Type targetType, DynamoSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The value to convert. |
System. |
targetType | The source value type. |
Dynamo |
options | The serialization options. |
Returns
Type | Description |
---|---|
Amazon. |
A DynamoDB attribute value, or |