 
 extension AFError {
 
-    // SerializationFailureReason
+    // ResponseSerializationFailureReason
 
     var isInputDataNil: Bool {
         if case let .responseSerializationFailed(reason) = self, reason.isInputDataNil { return true }


// MARK: -

extension AFError.SerializationFailureReason {
    var isInputDataNil: Bool {
        if case .inputDataNil = self { return true }
        return false

        return false
    }

    // ResponseValidationFailureReason

    var isDataFileNil: Bool {
        if case let .responseValidationFailed(reason) = self, reason.isDataFileNil { return true }
