Guest User

Untitled

a guest
Oct 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. class ChallengeModel: Decodable {
  2. var author: AuthorModel?
  3. var categories: [CategoriesModel]?
  4. var created_at: UInt?
  5. var id: String?
  6. var opponent: AuthorModel?
  7. var questions: [QuestionModel]?
  8.  
  9. required init?(json: JSON) {
  10. author = "author" <~~ json
  11. categories = "categories" <~~ json
  12. created_at = "created_at" <~~ json
  13. id = "id" <~~ json
  14. opponent = "opponent" <~~ json
  15. questions = "questions" <~~ json
Add Comment
Please, Sign In to add comment