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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
//
// StringSittingGestureIntroduce.swift
// Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
import Foundation
class StringSittingGestureIntroduce : NSObject, NSCoding{
var subTitle : String!
var suggestedText1 : String!
var suggestedText2 : String!
var suggestedText3 : String!
var suggestedText4 : String!
var title : String!
/**
* Instantiate the instance using the passed dictionary values to set the properties values
*/
init(fromDictionary dictionary: [String:Any]){
subTitle = dictionary["subTitle"] as? String
suggestedText1 = dictionary["suggestedText1"] as? String
suggestedText2 = dictionary["suggestedText2"] as? String
suggestedText3 = dictionary["suggestedText3"] as? String
suggestedText4 = dictionary["suggestedText4"] as? String
title = dictionary["title"] as? String
}
/**
* Returns all the available property values in the form of [String:Any] object where the key is the approperiate json key and the value is the value of the corresponding property
*/
func toDictionary() -> [String:Any]
{
var dictionary = [String:Any]()
if subTitle != nil{
dictionary["subTitle"] = subTitle
}
if suggestedText1 != nil{
dictionary["suggestedText1"] = suggestedText1
}
if suggestedText2 != nil{
dictionary["suggestedText2"] = suggestedText2
}
if suggestedText3 != nil{
dictionary["suggestedText3"] = suggestedText3
}
if suggestedText4 != nil{
dictionary["suggestedText4"] = suggestedText4
}
if title != nil{
dictionary["title"] = title
}
return dictionary
}
/**
* NSCoding required initializer.
* Fills the data from the passed decoder
*/
@objc required init(coder aDecoder: NSCoder)
{
subTitle = aDecoder.decodeObject(forKey: "subTitle") as? String
suggestedText1 = aDecoder.decodeObject(forKey: "suggestedText1") as? String
suggestedText2 = aDecoder.decodeObject(forKey: "suggestedText2") as? String
suggestedText3 = aDecoder.decodeObject(forKey: "suggestedText3") as? String
suggestedText4 = aDecoder.decodeObject(forKey: "suggestedText4") as? String
title = aDecoder.decodeObject(forKey: "title") as? String
}
/**
* NSCoding required method.
* Encodes mode properties into the decoder
*/
@objc func encode(with aCoder: NSCoder)
{
if subTitle != nil{
aCoder.encode(subTitle, forKey: "subTitle")
}
if suggestedText1 != nil{
aCoder.encode(suggestedText1, forKey: "suggestedText1")
}
if suggestedText2 != nil{
aCoder.encode(suggestedText2, forKey: "suggestedText2")
}
if suggestedText3 != nil{
aCoder.encode(suggestedText3, forKey: "suggestedText3")
}
if suggestedText4 != nil{
aCoder.encode(suggestedText4, forKey: "suggestedText4")
}
if title != nil{
aCoder.encode(title, forKey: "title")
}
}
}