     ///
     /// - returns: The result data type.
     public static func serializeResponseJSONDecodable<T: Decodable>(
-        keyPath: String? = nil,
+        decoder: JSONDecoder? = JSONDecoder(),
         response: HTTPURLResponse?,
         data: Data?,
         error: Error?)

            
            do {
                let data = try Data(contentsOf: fileURL)
                return RequestJSONDecodableResponseSerializer.serializeResponseJSONDecodable(keyPath: keyPath, response: response, data: data, error: error)
            } catch {
                return .failure(AFError.responseSerializationFailed(reason: .inputFileReadFailed(at: fileURL)))
            }


import Foundation
import Alamofire

class RequestJSONDecodableResponseSerializer {
    /// Returns a JSON object contained in a result type constructed from the response data using `JSONSerialization`
