     var labels: [String]?
     var environment: String?
     var components: [String : String]?
+    
+    func fromJSON(dict: Dictionary<String, Any>) {
+        if let keyValue = dict["key"] as! String? {
+            key = keyValue
+        }
+        if let idValue = dict["id"] as! String? {
+            id = Int(idValue)
+        }
+    }
     
     func toJSON() -> Dictionary<String, Any> {
         var json = Dictionary<String, Any>()

        fields["fields"] = json
        return fields
    }
}


class IssueModel: NSObject {
    var key: String?
    var id: Int?
    var project: String?
    var issueTypeId: String?
    var summary: String?
