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<String>.of(other.email!) : null),
        phone: (other.phone != null ? List<String>.of(other.phone!) : null),
        availabilityText: other.availabilityText,
        locale: other.locale,
        photoUrl: other.photoUrl,
        role: other.role,
        custom: (other.custom != null
            ? Map<String, String?>.of(other.custom!)
            : null),
        welcomeMessage: other.welcomeMessage,
      );