forked from Ahmed-Ali/JSONExport
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtilityMethod.swift
More file actions
executable file
·42 lines (34 loc) · 1.27 KB
/
UtilityMethod.swift
File metadata and controls
executable file
·42 lines (34 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// UtilityMethod.swift
//
// Create by Ahmed Ali on 14/11/2014
// Copyright (c) 2014 Mobile Developer. All rights reserved.
//
import Foundation
class UtilityMethod{
var body : String!
var bodyEnd : String!
var bodyStart : String!
var comment : String!
var forEachArrayOfCustomTypeProperty : String!
var forEachProperty : String!
var forEachCustomTypeProperty : String!
var returnStatement : String!
var signature : String!
var forEachPropertyWithSpecialStoringNeeds : String!
/**
* Instantiate the instance using the passed dictionary values to set the properties values
*/
init(fromDictionary dictionary: NSDictionary){
forEachCustomTypeProperty = dictionary["forEachCustomTypeProperty"] as? String
body = dictionary["body"] as? String
bodyEnd = dictionary["bodyEnd"] as? String
bodyStart = dictionary["bodyStart"] as? String
comment = dictionary["comment"] as? String
forEachArrayOfCustomTypeProperty = dictionary["forEachArrayOfCustomTypeProperty"] as? String
forEachProperty = dictionary["forEachProperty"] as? String
returnStatement = dictionary["returnStatement"] as? String
signature = dictionary["signature"] as? String
forEachPropertyWithSpecialStoringNeeds = dictionary["forEachPropertyWithSpecialStoringNeeds"] as? String
}
}