document as_dict() method