PaymayaDetails class
{@template PaymayaDetails}
Constructors
- PaymayaDetails({required num discount, required num serviceCharge, required num shippingFee, required num tax, required num subtotal})
-
const
- PaymayaDetails.fromJson(String source)
-
factory
-
PaymayaDetails.fromMap(Map<
String, dynamic> map) -
factory
Properties
- discount → num
-
computed value which the merchant declared
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceCharge → num
-
if necessary to include service charge to merchant.
final
- shippingFee → num
-
shipping fee can be either delivery fee or the commute fee you declare.
final
- subtotal → num
-
subtotal of the amount plus the remaining PaymayaDetails properties.
final
- tax → num
-
calculated tax from the usual VAT of 12%
final
Methods
-
copyWith(
{num? discount, num? serviceCharge, num? shippingFee, num? tax, num? subtotal}) → PaymayaDetails -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Converts map to json string.
-
toMap(
) → Map< String, dynamic> - Converts PaymayaDetails to Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override