{"action":"created","issue":{"url":"https://api.github.com/repos/aryaxt/OCMapper/issues/18","labels_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/18/comments","events_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/18/events","html_url":"https://github.com/aryaxt/OCMapper/issues/18","id":57760571,"number":18,"title":"How to specify which property to extract when using dictionaryFromObject() method?","user":{"login":"hopiaw","id":2787940,"avatar_url":"https://avatars.githubusercontent.com/u/2787940?v=3","gravatar_id":"","url":"https://api.github.com/users/hopiaw","html_url":"https://github.com/hopiaw","followers_url":"https://api.github.com/users/hopiaw/followers","following_url":"https://api.github.com/users/hopiaw/following{/other_user}","gists_url":"https://api.github.com/users/hopiaw/gists{/gist_id}","starred_url":"https://api.github.com/users/hopiaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hopiaw/subscriptions","organizations_url":"https://api.github.com/users/hopiaw/orgs","repos_url":"https://api.github.com/users/hopiaw/repos","events_url":"https://api.github.com/users/hopiaw/events{/privacy}","received_events_url":"https://api.github.com/users/hopiaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aryaxt/OCMapper/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"aryaxt","id":3460069,"avatar_url":"https://avatars.githubusercontent.com/u/3460069?v=3","gravatar_id":"","url":"https://api.github.com/users/aryaxt","html_url":"https://github.com/aryaxt","followers_url":"https://api.github.com/users/aryaxt/followers","following_url":"https://api.github.com/users/aryaxt/following{/other_user}","gists_url":"https://api.github.com/users/aryaxt/gists{/gist_id}","starred_url":"https://api.github.com/users/aryaxt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryaxt/subscriptions","organizations_url":"https://api.github.com/users/aryaxt/orgs","repos_url":"https://api.github.com/users/aryaxt/repos","events_url":"https://api.github.com/users/aryaxt/events{/privacy}","received_events_url":"https://api.github.com/users/aryaxt/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-02-16T03:06:34Z","updated_at":"2015-04-07T05:59:50Z","closed_at":"2015-04-07T05:29:08Z","body":"Hi,\r\n\r\nWhen using the following method:\r\n\r\n    (id)dictionaryFromObject:(NSObject *)object;\r\n\r\nand object inherit NSManagedObject, the dictionary returned has a lot of NSManagedObject properties that I'd like to remove (like inserted, deleted, hasChanges, faultingState etc). Is there is an easy way to do that?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/aryaxt/OCMapper/issues/comments/90376970","html_url":"https://github.com/aryaxt/OCMapper/issues/18#issuecomment-90376970","issue_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/18","id":90376970,"user":{"login":"poetmountain","id":2881716,"avatar_url":"https://avatars.githubusercontent.com/u/2881716?v=3","gravatar_id":"","url":"https://api.github.com/users/poetmountain","html_url":"https://github.com/poetmountain","followers_url":"https://api.github.com/users/poetmountain/followers","following_url":"https://api.github.com/users/poetmountain/following{/other_user}","gists_url":"https://api.github.com/users/poetmountain/gists{/gist_id}","starred_url":"https://api.github.com/users/poetmountain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poetmountain/subscriptions","organizations_url":"https://api.github.com/users/poetmountain/orgs","repos_url":"https://api.github.com/users/poetmountain/repos","events_url":"https://api.github.com/users/poetmountain/events{/privacy}","received_events_url":"https://api.github.com/users/poetmountain/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T05:59:50Z","updated_at":"2015-04-07T05:59:50Z","body":"@aryaxt If I'm understanding this correctly, this method would apply a global whitelist per-model? I think this probably addresses hoplaw's use-case, but in a case where you're sending a partial model via PATCH, and those model properties might be different every time (e.g. Message model where user can edit a 'title' or a 'body' property individually), a class-level whitelist wouldn't work. But perhaps that sort of dynamic model filtering isn't worth putting into the lib."}}