PaymentMethodDTO class
A DTO for the payment method model.
This class provides a common structure for all payment method DTOs, including a credit card, cash, cash on delivery, eft, paypal, stripe, and bkm express. It also provides methods to convert the DTO to and from a JSON object.
Constructors
- PaymentMethodDTO({PaymentMethod? creditCard, bool? cash, bool? cashOnDelivery, bool? eft, bool? paypal, bool? stripe, bool? bkmExpress})
-
PaymentMethodDTO.fromJson(Map<
String, dynamic> json)
Properties
- bkmExpress ↔ bool?
-
getter/setter pair
- cash ↔ bool?
-
getter/setter pair
- cashOnDelivery ↔ bool?
-
getter/setter pair
- creditCard ↔ PaymentMethod?
-
getter/setter pair
- eft ↔ bool?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- paypal ↔ bool?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stripe ↔ bool?
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited