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

hashCode int
The hash code for this object.
no setterinherited
mobile String?
The customer's mobile phone number.
final
name String?
The full name of the customer.
final
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 this object to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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