Update docstring for as_dict