User class
Represents a user in the system.
Each user has a variety of properties including business phones, display name, given name, job title, mail, mobile phone, office location, preferred language, surname, user principal name, and an id.
Constructors
-
User({List<
String> ? businessPhones, String? displayName, String? givenName, String? jobTitle, String? mail, String? mobilePhone, String? officeLocation, String? preferredLanguage, String? surname, String? userPrincipalName, String? id}) - Constructs a User with the provided properties.
- User.empty()
-
Constructs an empty User where all properties are null.
const
-
User.fromJson(Map<
String, dynamic> json) -
Constructs a User from a JSON map.
factory
Properties
-
businessPhones
→ List<
String> ? -
final
- displayName → String?
-
final
- givenName → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
final
- jobTitle → String?
-
final
- mail → String?
-
final
- mobilePhone → String?
-
final
- officeLocation → String?
-
final
- preferredLanguage → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- surname → String?
-
final
- userPrincipalName → String?
-
final
Methods
-
copyWith(
{List< String> ? businessPhones, String? displayName, String? givenName, String? jobTitle, String? mail, String? mobilePhone, String? officeLocation, String? preferredLanguage, String? surname, String? userPrincipalName, String? id}) → User - Returns a new User where the properties are the same as this one unless specified in the arguments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited