Skip to content

Instantly share code, notes, and snippets.

@jault3
Created August 18, 2014 22:46
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 jault3/02921219c88c2d0754b7 to your computer and use it in GitHub Desktop.
Save jault3/02921219c88c2d0754b7 to your computer and use it in GitHub Desktop.
Environment.swift
import Foundation
class Environment {
var environmentId: String
var data: Dictionary<String, AnyObject>
var deployed: Bool
var dirty: Bool
init(dict: Dictionary<String, AnyObject>) {
self.environmentId = (dict["environmentId"] as AnyObject?) as String
self.data = (dict["data"] as AnyObject?) as Dictionary<String, AnyObject>
self.deployed = (dict["deployed"] as AnyObject?) as Bool
self.dirty = (dict["dirty"] as AnyObject?) as Bool
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment