Shipping class
Represents the shipping details for the payment process.
Constructors
- Shipping({required String firstName, required String lastName, required String email, required String phone, required String address, required String city, required String region, required String country, required String postalCode, required String idType, required String idNumber})
- Creates a new instance of Shipping with the given parameters.
-
Shipping.fromJson(Map<
String, dynamic> json) -
Creates a new instance of Shipping from a JSON object.
factory
Properties
- address → String
-
The address of the shipping contact.
final
- city → String
-
The city of the shipping contact.
final
- country → String
-
The country of the shipping contact.
final
- email → String
-
The email address of the shipping contact.
final
- firstName → String
-
The first name of the shipping contact.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idNumber → String
-
The ID number of the shipping contact.
final
- idType → String
-
The ID type of the shipping contact.
final
- lastName → String
-
The last name of the shipping contact.
final
- phone → String
-
The phone number of the shipping contact.
final
- postalCode → String
-
The postal code of the shipping contact.
final
- region → String
-
The region of the shipping contact.
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 the Shipping instance to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited