added safe measure for createWithDictionary for event model