User.of constructor

User.of(
  1. User other
)

Implementation

User.of(User other)
  : _session = other._session,
    _idOnly = other._idOnly,
    super(
      id: other.id,
      name: other.name,
      email: (other.email != null ? List.of(other.email!) : null),
      phone: (other.phone != null ? List.of(other.phone!) : null),
      availabilityText: other.availabilityText,
      locale: other.locale,
      photoUrl: other.photoUrl,
      role: other.role,
      custom: (other.custom != null ? Map.of(other.custom!) : null),
      welcomeMessage: other.welcomeMessage,
    );