WpUser.fromWPUserRegisterResponse constructor

WpUser.fromWPUserRegisterResponse(
  1. 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);
}