fromUser static method

LoggedInUserOrError fromUser(
  1. LoggedInUser loggedInUser
)

Creates an instance of LoggedInUserOrError from a loggedInUser.

Implementation

static LoggedInUserOrError fromUser(LoggedInUser loggedInUser) {
  LoggedInUserOrError loggedInUserOrError = LoggedInUserOrError();
  loggedInUserOrError.loggedInUser = loggedInUser;
  return loggedInUserOrError;
}