WpUser.fromWPUserRegisterResponse constructor
WpUser.fromWPUserRegisterResponse(
- WPUserRegisterResponse wpUserRegisterResponse
Creates a WpUser from a WPUserRegisterResponse
Implementation
WpUser.fromWPUserRegisterResponse(
WPUserRegisterResponse wpUserRegisterResponse) {
token = wpUserRegisterResponse.data?.token;
expiresAt = wpUserRegisterResponse.data?.expiresAt;
_setUser(wpUserRegisterResponse.data?.user);
}