Fixed typo

Fixed a typo in rest_serializer#serializeIntoHash