@@ -74,13 +74,13 @@ class FromJSON<CollectionType> {
7474
7575 func object< N: MapperProtocol > ( inout field: N , object: AnyObject ? ) {
7676 if let value = object as? [ String : AnyObject ] {
77- field = Mapper ( ) . map ( value, to : N . self)
77+ field = Mapper ( ) . map ( value, toType : N . self)
7878 }
7979 }
8080
8181 func object< N: MapperProtocol > ( inout field: N ? , object: AnyObject ? ) {
8282 if let value = object as? [ String : AnyObject ] {
83- field = Mapper ( ) . map ( value, to : N . self)
83+ field = Mapper ( ) . map ( value, toType : N . self)
8484 }
8585 }
8686
@@ -111,7 +111,7 @@ class FromJSON<CollectionType> {
111111 if let array = object as [ AnyObject ] ? {
112112 for object in array {
113113 let objectJSON = object as [ String : AnyObject ]
114- var parsedObj = mapper. map ( objectJSON, to : N . self)
114+ var parsedObj = mapper. map ( objectJSON, toType : N . self)
115115 parsedObjects. append ( parsedObj)
116116 }
117117 }
@@ -148,7 +148,7 @@ class FromJSON<CollectionType> {
148148 if let dictionary = object as Dictionary < String , AnyObject > ? {
149149 for (key, object) in dictionary {
150150 let objectJSON = object as [ String : AnyObject ]
151- var parsedObj = mapper. map ( objectJSON, to : N . self)
151+ var parsedObj = mapper. map ( objectJSON, toType : N . self)
152152 parsedObjectsDictionary [ key] = parsedObj
153153 }
154154 }
0 commit comments