diff --git a/README.md b/README.md index 0674db3..0b36652 100644 --- a/README.md +++ b/README.md @@ -143,14 +143,14 @@ extension JSONKeys { static let id = JSONKey("id") static let createdAt = JSONKey("created_at") static let updatedAt = JSONKey("updated_at") - + static let title = JSONKey("title") - + static let normalImageURL = JSONKey(path: "images", "normal") static let hidpiImageURL = JSONKey(path: "images", "hidpi") - + static let user = JSONKey("user") - static let name = JSONKey("name") + static let name = JSONKey("name") } ``` @@ -160,25 +160,25 @@ extension JSONKeys { struct Shot { let id: Int let title: String - + let normalImageURL: NSURL var hidpiImageURL: NSURL? - + let createdAt: NSDate let updatedAt: NSDate - + let user: User init(_ json: JSON) { id = json[.id] title = json[.title] - + normalImageURL = json[.normalImageURL]! hidpiImageURL = json[.hidpiImageURL] - + createdAt = json[.createdAt]! updatedAt = json[.updatedAt]! - + user = User(json[.user]) } } @@ -188,14 +188,14 @@ struct Shot { struct User { let id: Int let name: String - + let createdAt: NSDate let updatedAt: NSDate init(_ json: JSON) { id = json[.id] name = json[.name] - + createdAt = json[.createdAt]! updatedAt = json[.updatedAt]! } @@ -288,7 +288,7 @@ pod 'JASON', '~> 3.0' ## License -Copyright (c) 2015-2016 Damien (http://delba.io) +Copyright (c) 2015-2019 Damien (http://delba.io) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal