         }
     }
     
-    public func map<T: Mappable>(to type: T.Type, keyPath: String?) throws -> T {
+    func map<T: Mappable>(to type: T.Type, keyPath: String?) throws -> T {
         guard let keyPath = keyPath else { return try map(to: type) }
         
         guard let jsonDictionary = try mapJSON() as? NSDictionary,


public extension Response {

    public func map<T: Mappable>(to type: T.Type) throws -> T {
        guard let jsonDictionary = try mapJSON() as? NSDictionary else {
            throw MoyaError.jsonMapping(self)
        }

        }
    }
    
    func map<T: Mappable>(to type: [T].Type) throws -> [T] {
        guard let jsonArray = try mapJSON() as? [NSDictionary] else {
            throw MoyaError.jsonMapping(self)
        }
