DynamoDB object mapping inspired by mongoose