UserModel.getData constructor
UserModel.getData(
- Map<String, dynamic> jsonResponse
)
Implementation
factory UserModel.getData(Map<String, dynamic> jsonResponse) => UserModel(
email: jsonResponse["email"],
phone: jsonResponse["phone"],
firstName: jsonResponse["firstName"],
lastName: jsonResponse["lastName"],
gender: jsonResponse["gender"],
dateOfBirth: jsonResponse["dateOfBirth"],
password: jsonResponse["password"],
userType: jsonResponse["userType"],
defaultAddressId: jsonResponse["defaultAddressId"],
token: jsonResponse["token"],
profilePicture: jsonResponse["profilePicture"],
);