ExAws.Dynamo.Decoder (ExAws.Dynamo v4.0.1) View Source

Decodes a Dynamo response into a struct.

If Dynamo.Decodable is implemented for the struct, it will be called after the completion of the coercion.

This is important for handling nested maps if you wanted the nested maps to have atom keys.

Link to this section Summary

Functions

Converts a map with binary keys to the specified struct

Attempts to convert a number to a float, and then an integer

Convert Dynamo format to Elixir

Link to this section Functions

Link to this function

binary_map_to_struct(bmap, module)

View Source

Converts a map with binary keys to the specified struct

Link to this function

binary_to_number(binary)

View Source

Attempts to convert a number to a float, and then an integer

Convert Dynamo format to Elixir

Functions which convert the Dynamo-style values into normal Elixir values. Use these if you just want the Dynamo result to look more like Elixir without coercing it into a particular struct.