AuthenticationDataModel.fromToken constructor
AuthenticationDataModel.fromToken(
- String token
Implementation
factory AuthenticationDataModel.fromToken(String token) {
Map<String, dynamic> decodedToken = _decodeToken(token);
return AuthenticationDataModel(
id: decodedToken["id"] ?? decodedToken["_id"],
token: token,
);
}