CustomerDetails class
A data class representing the customer's personal information.
This class contains identifying and contact information for the customer making the payment. This information is used for:
- Payment notifications
- Receipt delivery
- Customer identification
Example:
final customer = CustomerDetails(
name: 'John Doe',
mobile: '+1234567890',
);
Constructors
- CustomerDetails({String? name, String? mobile})
- Creates a CustomerDetails object with the specified information.
-
CustomerDetails.fromJson(Map<
String, dynamic> json) -
Creates a CustomerDetails object from a JSON map.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this object to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited