User class
A user with details as permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions:
- User record deleted from Atlassian: This occurs as the result of a right
to be forgotten request. In this case,
displayName
provides an indication and other parameters have default values or are blank (for example, email is blank). - User record corrupted: This occurs as a results of events such as a
server import and can only happen to deleted users. In this case,
accountId
returns unknown and all other parameters have fallback values. - User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.
Constructors
- User({String? accountId, UserAccountType? accountType, bool? active, SimpleListWrapperApplicationRole? applicationRoles, AvatarUrlsBean? avatarUrls, String? displayName, String? emailAddress, String? expand, SimpleListWrapperGroupName? groups, String? key, String? locale, String? name, String? self, String? timeZone})
-
User.fromJson(Map<
String, Object?> json) -
factory
Properties
- accountId → String?
-
The account ID of the user, which uniquely identifies the user across all
Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. Required in
requests.
final
- accountType → UserAccountType?
-
The user account type. Can take the following values:
final
- active → bool
-
Whether the user is active.
final
- applicationRoles → SimpleListWrapperApplicationRole?
-
The application roles the user is assigned to.
final
- avatarUrls → AvatarUrlsBean?
-
The avatars of the user.
final
- displayName → String?
-
The display name of the user. Depending on the user’s privacy setting,
this may return an alternative value.
final
- emailAddress → String?
-
The email address of the user. Depending on the user’s privacy setting,
this may be returned as null.
final
- expand → String?
-
Expand options that include additional user details in the response.
final
- groups → SimpleListWrapperGroupName?
-
The groups that the user belongs to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String?
-
This property is no longer available and will be removed from the
documentation soon. See the
deprecation notice
for details.
final
- locale → String?
-
The locale of the user. Depending on the user’s privacy setting, this may
be returned as null.
final
- name → String?
-
This property is no longer available and will be removed from the
documentation soon. See the
deprecation notice
for details.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- self → String?
-
The URL of the user.
final
- timeZone → String?
-
The time zone specified in the user's profile. Depending on the user’s
privacy setting, this may be returned as null.
final
Methods
-
copyWith(
{String? accountId, UserAccountType? accountType, bool? active, SimpleListWrapperApplicationRole? applicationRoles, AvatarUrlsBean? avatarUrls, String? displayName, String? emailAddress, String? expand, SimpleListWrapperGroupName? groups, String? key, String? locale, String? name, String? self, String? timeZone}) → User -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited