Dot Notation for BackendlessUser Class

For any of the custom data classes we create in Backendless we can create a class in Xcode that gives us access to using dot notation for the class properties. Is there a way to do the same thing for the BackendlessUser class? I found BackendlessUser.h but if I’m not mistaken, this does not allow us to use dot notation but rather the code below.

            let currentUser = self.backendless.userService.currentUser    
            self.emailLabel.text = self.currentUser.getProperty("email") as? String

Hi Jon,

Since BackendlessUser is a built-in class and it doesn’t have direct fields like “email” or your own added ones, you have to use the getProperty() method.