{"action":"created","issue":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/283","labels_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/283/comments","events_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/283/events","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/283","id":115449793,"number":283,"title":"Is There Any Way Can Deal With: TypeOutter<TypeInner>? [Mapper<TypeOutter<TypeInner>>]","user":{"login":"liuxue0905","id":4638235,"avatar_url":"https://avatars.githubusercontent.com/u/4638235?v=3","gravatar_id":"","url":"https://api.github.com/users/liuxue0905","html_url":"https://github.com/liuxue0905","followers_url":"https://api.github.com/users/liuxue0905/followers","following_url":"https://api.github.com/users/liuxue0905/following{/other_user}","gists_url":"https://api.github.com/users/liuxue0905/gists{/gist_id}","starred_url":"https://api.github.com/users/liuxue0905/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuxue0905/subscriptions","organizations_url":"https://api.github.com/users/liuxue0905/orgs","repos_url":"https://api.github.com/users/liuxue0905/repos","events_url":"https://api.github.com/users/liuxue0905/events{/privacy}","received_events_url":"https://api.github.com/users/liuxue0905/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-06T06:58:30Z","updated_at":"2015-11-06T13:57:16Z","closed_at":null,"body":"I want use ObjectMapper in this scene:\r\nlet resultObject = Mapper&lt;Result&lt;DatasForGoodsList>>().map(jsonString)\r\n\r\nPlease tell me ObjectMapper can handle this~~~"},"comment":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/comments/154415651","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/283#issuecomment-154415651","issue_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/283","id":154415651,"user":{"login":"tristanhimmelman","id":1562134,"avatar_url":"https://avatars.githubusercontent.com/u/1562134?v=3","gravatar_id":"","url":"https://api.github.com/users/tristanhimmelman","html_url":"https://github.com/tristanhimmelman","followers_url":"https://api.github.com/users/tristanhimmelman/followers","following_url":"https://api.github.com/users/tristanhimmelman/following{/other_user}","gists_url":"https://api.github.com/users/tristanhimmelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanhimmelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanhimmelman/subscriptions","organizations_url":"https://api.github.com/users/tristanhimmelman/orgs","repos_url":"https://api.github.com/users/tristanhimmelman/repos","events_url":"https://api.github.com/users/tristanhimmelman/events{/privacy}","received_events_url":"https://api.github.com/users/tristanhimmelman/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T13:57:16Z","updated_at":"2015-11-06T13:57:16Z","body":"Hi there, you can do this by making your Result class look like the following and making sure your generic type also conforms to `Mappable`\r\n\r\n```\r\nclass Result<T: Mappable>: Mappable {\r\n\tvar result: T?\r\n\t\r\n\trequired init?(_ map: Map){\r\n\t\t\r\n\t}\r\n\t\r\n\tfunc mapping(map: Map) {\r\n\t\tresult <- map[\"result\"]\r\n\t}\r\n}\r\n```"}}