Last active
July 7, 2018 12:14
-
-
Save Banck/757a77843b5b12305e0adfa23bb11e15 to your computer and use it in GitHub Desktop.
Place.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import SwiftyJSON | |
struct Place: JSONAutoRepresentable{ | |
var id: String? | |
var name: String? | |
var position: String? | |
// sourcery:inline:auto:Place.JSONAutoRepresentable | |
init(_ json: JSON) { | |
id = json["id"].string | |
name = json["name"].string | |
position = json["position"].string | |
} | |
// sourcery:end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment