File tree Expand file tree Collapse file tree 4 files changed +44
-44
lines changed
SwiftyJSONAccelerator/Base Files Expand file tree Collapse file tree 4 files changed +44
-44
lines changed Original file line number Diff line number Diff line change @@ -9,28 +9,28 @@ import Foundation{INCLUDE_SWIFTY}{INCLUDE_OBJECT_MAPPER}
9
9
10
10
public {OBJECT_KIND} {OBJECT_NAME}: {OBJECT_BASE_CLASS}{NSCODING_PROTOCOL_SUPPORT} {
11
11
12
- // MARK: Declaration for string constants to be used to decode and also serialize.
13
- {STRING_CONSTANT_BLOCK}
12
+ // MARK: Declaration for string constants to be used to decode and also serialize.
13
+ {STRING_CONSTANT_BLOCK}
14
14
15
- // MARK: Properties
16
- {PROPERTIES}
15
+ // MARK: Properties
16
+ {PROPERTIES}
17
17
18
- // MARK: Initalizers
18
+ // MARK: Initalizers
19
19
{SWIFTY_JSON_SUPPORT}
20
20
21
21
{OBJECT_MAPPER_SUPPORT}
22
22
23
- /**
24
- Generates description of the object in the form of a NSDictionary.
25
- - returns: A Key value pair containing all valid values in the object.
26
- */
27
- public func dictionaryRepresentation() -> [String : AnyObject ] {
23
+ /**
24
+ Generates description of the object in the form of a NSDictionary.
25
+ - returns: A Key value pair containing all valid values in the object.
26
+ */
27
+ public func dictionaryRepresentation() -> [String : AnyObject ] {
28
28
29
- var dictionary: [String : AnyObject ] = [ : ]
30
- {DESC}
29
+ var dictionary: [String : AnyObject ] = [ : ]
30
+ {DESC}
31
31
32
- return dictionary
33
- }
32
+ return dictionary
33
+ }
34
34
35
35
{NSCODING_SUPPORT}
36
36
Original file line number Diff line number Diff line change 1
- // MARK: NSCoding Protocol
1
+ // MARK: NSCoding Protocol
2
2
required public init(coder aDecoder: NSCoder) {
3
- {DECODERS}
3
+ {DECODERS}
4
4
}
5
5
6
6
public func encodeWithCoder(aCoder: NSCoder) {
7
- {ENCODERS}
7
+ {ENCODERS}
8
8
}
Original file line number Diff line number Diff line change 1
- /**
2
- Map a JSON object to this class using ObjectMapper
3
- - parameter map: A mapping from ObjectMapper
4
- */
5
- required init?(_ map: Map){
1
+ /**
2
+ Map a JSON object to this class using ObjectMapper
3
+ - parameter map: A mapping from ObjectMapper
4
+ */
5
+ required init?(_ map: Map){
6
6
7
- }
7
+ }
8
8
9
- /**
10
- Map a JSON object to this class using ObjectMapper
11
- - parameter map: A mapping from ObjectMapper
12
- */
13
- func mapping(map: Map) {
9
+ /**
10
+ Map a JSON object to this class using ObjectMapper
11
+ - parameter map: A mapping from ObjectMapper
12
+ */
13
+ func mapping(map: Map) {
14
14
{OBJECT_MAPPER_INITIALIZER}
15
- }
15
+ }
Original file line number Diff line number Diff line change 1
- /**
2
- Initates the class based on the object
3
- - parameter object: The object of either Dictionary or Array kind that was passed.
4
- - returns: An initalized instance of the class.
5
- */
6
- convenience public init(object: AnyObject) {
1
+ /**
2
+ Initates the class based on the object
3
+ - parameter object: The object of either Dictionary or Array kind that was passed.
4
+ - returns: An initalized instance of the class.
5
+ */
6
+ convenience public init(object: AnyObject) {
7
7
self.init(json: JSON(object))
8
- }
8
+ }
9
9
10
- /**
11
- Initates the class based on the JSON that was passed.
12
- - parameter json: JSON object from SwiftyJSON.
13
- - returns: An initalized instance of the class.
14
- */
15
- public init(json: JSON) {
16
- {INITALIZER}
17
- }
10
+ /**
11
+ Initates the class based on the JSON that was passed.
12
+ - parameter json: JSON object from SwiftyJSON.
13
+ - returns: An initalized instance of the class.
14
+ */
15
+ public init(json: JSON) {
16
+ {INITALIZER}
17
+ }
You can’t perform that action at this time.
0 commit comments