diff --git a/Source/SwiftRestModel.swift b/Source/SwiftRestModel.swift index 62c5afe..9123bdf 100644 --- a/Source/SwiftRestModel.swift +++ b/Source/SwiftRestModel.swift @@ -41,7 +41,7 @@ public class SwiftRestModel: NSObject - returns: Bool */ public func isNew() -> Bool { - if (self.data["id"].isExists()) { + if (self.data["id"].exists()) { return false } @@ -145,4 +145,4 @@ public class SwiftRestModel: NSObject } } } -} \ No newline at end of file +}