OrderModel<T extends OrderMenuModel> class

Implementers

Constructors

OrderModel({required String id, required String name, required String ordererId, required CouponModel? coupon, required int totalPrice, required int discount, required int actualPaymentPrice, required ApartmentModel apartment, required String userPhoneNumber, required Iterable<T> menus, required DateTime createdAt, required DateTime updatedAt})
const
OrderModel.fromJson(dynamic json)
factory

Properties

actualPaymentPrice int
final
apartment ApartmentModel
final
coupon CouponModel?
final
createdAt DateTime
final
discount int
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
final
name String
final
ordererId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state OrderState
no setter
totalPrice int
final
updatedAt DateTime
final
userPhoneNumber String
final

Methods

copy({String? id, String? name, String? ordererId, Option<CouponModel>? coupon, int? totalPrice, int? discount, int? deliveryTip, int? actualPaymentPrice, ApartmentModel? apartment, String? userPhoneNumber, String? detailedAddress, Iterable<T>? menus, DateTime? updatedAt, DateTime? createdAt}) OrderModel<T>
isEveryMenuState(OrderState state) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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