When I try to save my class, null values are being saved.
Here is my class
class Profile : NSObject {
var phoneNumber : String?
var personName : String?
var emailAddress : String?
var address : String?
var orderCount : String?
var accountType : String?
var created : NSDate?
var updated : NSDate?
var objectId: String?
}
Here is my code to save it
self.backendless.data.of(Profile.self).save(entity: profile, responseHandler: { (data) in
print(data)
}) { (error) in
print(error)
}
I am getting a response that object is saved but all that are saved are null values.
I checked and the entity that I am saving (profile) has data in it.
Is there any possible explanation why this is happening?