Skip to content

Instantly share code, notes, and snippets.

@deya-eldeen
Created June 29, 2018 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deya-eldeen/f05519a2a199995e2f71d7ebd5e0e7ee to your computer and use it in GitHub Desktop.
Save deya-eldeen/f05519a2a199995e2f71d7ebd5e0e7ee to your computer and use it in GitHub Desktop.
model
import Foundation
import ObjectMapper
class Basic: Mappable {
required init?(map: Map){}
var success: String?
var responseCode: Int?
func mapping(map: Map) {
success <- map["success"]
responseCode <- map["responseCode"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment