def simple_data_factory(model, json_data):
return SimpleDataModel(json_data)<EOL>
Factory function for creating SimpleDataModel objects.

    Args:
        model(basestring): The data model to use when creating the data
            object (message, room, membership, etc.).
        json_data(basestring, dict): The JSON string or dictionary data with
            which to initialize the object.

    Returns:
        SimpleDataModel: The created SimpleDataModel object.

    Raises:
        TypeError: If the json_data parameter is not a JSON string or
            dictionary.