Map<String, ?> map = (Map<String, ?>) obj;
Map<String, AttributeValue> values =
new HashMap<String, AttributeValue>();
for (Map.Entry<String, ?> entry : map.entrySet()) {
AttributeValue value;
if (entry.getValue() == null) {
value = new AttributeValue().withNULL(true);
} else {
value = memberMarshaller.marshall(entry.getValue());
}
values.put(entry.getKey(), value);
}
AttributeValue result = new AttributeValue();
result.setM(values);
return result;
}