Adding dict_to_model helper.