Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Simple Gloss Sample code of a user , consise with MoyaExplained.swift
- import Gloss
- struct User: Decodable {
- let email: String?
- let password: String?
- let name: String?
- // MARK: - Deserialization
- init?(json: JSON) {
- self.name = "name" <~~ json
- self.email = "email" <~~ json
- self.password = "password" <~~ json
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement