{"action":"created","issue":{"url":"https://api.github.com/repos/sylvainpolletvillard/ObjectModel/issues/57","repository_url":"https://api.github.com/repos/sylvainpolletvillard/ObjectModel","labels_url":"https://api.github.com/repos/sylvainpolletvillard/ObjectModel/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/sylvainpolletvillard/ObjectModel/issues/57/comments","events_url":"https://api.github.com/repos/sylvainpolletvillard/ObjectModel/issues/57/events","html_url":"https://github.com/sylvainpolletvillard/ObjectModel/issues/57","id":271963617,"number":57,"title":"Is it possible to drop all keys with value undefined from model instance?","user":{"login":"serhiipalash","id":14208343,"avatar_url":"https://avatars2.githubusercontent.com/u/14208343?v=4","gravatar_id":"","url":"https://api.github.com/users/serhiipalash","html_url":"https://github.com/serhiipalash","followers_url":"https://api.github.com/users/serhiipalash/followers","following_url":"https://api.github.com/users/serhiipalash/following{/other_user}","gists_url":"https://api.github.com/users/serhiipalash/gists{/gist_id}","starred_url":"https://api.github.com/users/serhiipalash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serhiipalash/subscriptions","organizations_url":"https://api.github.com/users/serhiipalash/orgs","repos_url":"https://api.github.com/users/serhiipalash/repos","events_url":"https://api.github.com/users/serhiipalash/events{/privacy}","received_events_url":"https://api.github.com/users/serhiipalash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-07T19:59:25Z","updated_at":"2017-11-07T23:21:28Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nYou have a grate library! It is the best thing I've worked with on modeling in JavaScript.\r\n\r\nOne question, is it necessary to add all unspecified model properties as `undefined` when creating the model instance?\r\n\r\nIs there `.toObject()` method in the model?"},"comment":{"url":"https://api.github.com/repos/sylvainpolletvillard/ObjectModel/issues/comments/342657265","html_url":"https://github.com/sylvainpolletvillard/ObjectModel/issues/57#issuecomment-342657265","issue_url":"https://api.github.com/repos/sylvainpolletvillard/ObjectModel/issues/57","id":342657265,"user":{"login":"sylvainpolletvillard","id":566536,"avatar_url":"https://avatars3.githubusercontent.com/u/566536?v=4","gravatar_id":"","url":"https://api.github.com/users/sylvainpolletvillard","html_url":"https://github.com/sylvainpolletvillard","followers_url":"https://api.github.com/users/sylvainpolletvillard/followers","following_url":"https://api.github.com/users/sylvainpolletvillard/following{/other_user}","gists_url":"https://api.github.com/users/sylvainpolletvillard/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvainpolletvillard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvainpolletvillard/subscriptions","organizations_url":"https://api.github.com/users/sylvainpolletvillard/orgs","repos_url":"https://api.github.com/users/sylvainpolletvillard/repos","events_url":"https://api.github.com/users/sylvainpolletvillard/events{/privacy}","received_events_url":"https://api.github.com/users/sylvainpolletvillard/received_events","type":"User","site_admin":false},"created_at":"2017-11-07T23:21:28Z","updated_at":"2017-11-07T23:21:28Z","author_association":"OWNER","body":"Hello, thanks !\r\n\r\nIf you have some properties in your model definition that are not assigned when creating the model instance, then these properties should be declared as [optional properties](http://objectmodel.js.org/#doc-optional-properties)\r\n\r\nIf you have some properties that are **not** in your model definition, it is also valid unless your model is [sealed](http://objectmodel.js.org/#doc-sealed).\r\n\r\nCan you explain what behaviour are you looking for with this `toObject()` method ?"}}
{"actor":{"display_login":"sylvainpolletvillard"}}