Documenting `model_to_dict` function.