Serializer

add serializer for the todo objects.