def fromJson(self, dictObj: dict): super().fromJson(dictObj) self.user = Models.Login().fromJson(dictObj['user']) return self
def __init__(self, user: Models.Login = Models.Login()): super().__init__() self.user = user
def __comando_B1__(self): login = Models.Login() login.userEmail = self.entr1.retorna_entr() login.password = self.entr2.retorna_entr() self.controller.requestLogin(login)