InitializeCustomerRequest class
Represents the data structure for a customer registration request to the Gameball API.
This class defines the properties required to register a customer with the Gameball platform. It includes essential information for identifying the customer, as well as optional details to enrich their profile and personalize their experience.
- Annotations
-
- @JsonSerializable()
Constructors
- InitializeCustomerRequest.new({required String customerId, required String deviceToken, String? osType, CustomerAttributes? customerAttributes, String? referrerCode, String? email, String? mobileNumber, bool? isGuest, String? pushProvider})
-
Creates a new
InitializeCustomerRequest
object. -
InitializeCustomerRequest.fromJson(Map<
String, dynamic> json) -
factory
Properties
- customerAttributes ↔ CustomerAttributes?
-
Additional customer attributes to be sent during registration (optional).
getter/setter pair
- customerId ↔ String
-
The unique identifier for the customer (required).
getter/setter pair
- deviceToken ↔ String
-
The customer's device token for push notifications (required).
getter/setter pair
- email ↔ String?
-
The customer's email address (optional).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isGuest ↔ bool?
-
A flag indicating if the individual interacting with your system is a guest (not signed up).
getter/setter pair
- mobileNumber ↔ String?
-
The customer's mobile number (optional).
getter/setter pair
- osType ↔ String?
-
The operating system type of the customer's device (optional, automatically set).
getter/setter pair
- pushProvider ↔ String?
-
getter/setter pair
- referrerCode ↔ String?
-
A referral code associated with the customer (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
InitializeCustomerRequest
object to a JSON map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited