Fix doc for from_dict.