UserAttributes class

Constructors

UserAttributes({String? fullName, String? firstName, String? lastName, required String email, required UserAttributesStatusEnum status, required UserAttributesRoleEnum role, Map<String, Object> metadata = const {}, required DateTime created, required DateTime updated})
Returns a new UserAttributes instance.

Properties

created DateTime
When the user was created.
getter/setter pair
email String
The unique email of the user.
getter/setter pair
firstName String?
The first name of the user.
getter/setter pair
fullName String?
The full name of the user.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
lastName String?
The last name of the user.
getter/setter pair
metadata Map<String, Object>
Object containing user metadata.
getter/setter pair
role UserAttributesRoleEnum
The role for the user. ### Options - user: A normal user of one or more of your products. Depending on account settings, they can have permission to manage their own resources, e.g. licenses and machines. They cannot manage other users' resources. - support-agent: An internal administrative user of your Keygen account, with a limited subset of permissions. Support Agents can read most resource data, but cannot create, update or delete resources. - sales-agent: An internal administrative user of your Keygen account, with a limited subset of permissions. Sales Agents can read most resource data, but can only create, update and delete specific resources. - developer: An internal administrative user of your Keygen account, with permission to manage all resources, but they cannot manage account billing. - read-only: An internal administrative user of your Keygen account, with permission to read all resources, except for account billing. - admin: An internal administrative user of your Keygen account, with permission to manage the entire account.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status UserAttributesStatusEnum
The user's status, for filtering purposes and to ascertain overall status at-a-glance. An active user is a user that was created within the last 90 days, or has a license that has been created, validated, checked out, or checked in within the last 90 days. An inactive user is a user that has none of those traits. One of: ACTIVE, INACTIVE, or BANNED.
getter/setter pair
updated DateTime
When the user was last updated.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) UserAttributes?
Returns a new UserAttributes instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<UserAttributes>
mapFromJson(dynamic json) Map<String, UserAttributes>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<UserAttributes>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.