PlayerAttributes class
Represents additional player attributes to be sent during registration.
This class defines various optional player attributes that can be included with the player registration request. These attributes can be used to personalize the player's experience within the Gameball platform.
- Annotations
-
- @JsonSerializable.new()
Constructors
-
PlayerAttributes({String? displayName, String? firstName, String? lastName, String? email, String? gender, String? mobileNumber, String? dateOfBirth, String? joinDate, String? preferredLanguage, String? channel, Map<
String, String> ? customAttributes}) -
Creates a new
PlayerAttributesobject. -
PlayerAttributes.fromJson(Map<
String, dynamic> json) -
factory
Properties
- channel ↔ String?
-
The channel through which the player joined (defaults to "mobile").
getter/setter pair
-
customAttributes
↔ Map<
String, String> ? -
A map containing additional custom player attributes (optional).
getter/setter pair
- dateOfBirth ↔ String?
-
The player's date of birth in a format suitable for the API (optional).
getter/setter pair
- displayName ↔ String?
-
The player's display name (optional).
getter/setter pair
- email ↔ String?
-
The player's email address (optional).
getter/setter pair
- firstName ↔ String?
-
The player's first name (optional).
getter/setter pair
- gender ↔ String?
-
The player's gender (optional).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- joinDate ↔ String?
-
The player's join date in a format suitable for the API (optional).
getter/setter pair
- lastName ↔ String?
-
The player's last name (optional).
getter/setter pair
- mobileNumber ↔ String?
-
The player's mobile number (optional).
getter/setter pair
- preferredLanguage ↔ String?
-
The player's preferred language (optional).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
PlayerAttributesobject to a JSON map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited