in app/utils/Circe.scala [34:56]
def dynamoToJson(attribute: AttributeValue): Json = {
if (attribute.hasM()) {
// Map
dynamoMapToJson(attribute.m())
} else if (attribute.hasL()) {
// List
Json.fromValues(attribute.l().asScala.map(dynamoToJson))
} else if (attribute.hasSs()) {
// Set of strings
Json.fromValues(attribute.ss().asScala.map(Json.fromString))
} else if (attribute.s() != null) {
// String
Json.fromString(attribute.s())
} else if (attribute.n() != null) {
// Number
Json.fromDouble(attribute.n().toDouble).getOrElse(Json.Null)
} else if (attribute.bool() != null) {
// Bool
Json.fromBoolean(attribute.bool())
} else {
Json.Null
}
}