ProductModel class

Inheritance

Constructors

ProductModel({String? id, required String shopId, required String productType, required String name, required String imgUrl, required double price, int? quantity, String? description, required bool available, int? rating, List<SpecialOption>? specialOptions, List<Review>? reviewList, String? deliveryType, bool? deliveryProvince})
ProductModel.fromJson(Map<String, dynamic> json)
factory

Properties

available bool
finalinherited
deliveryProvince bool?
finalinherited
deliveryType String?
finalinherited
description String?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
finalinherited
imgUrl String
finalinherited
name String
finalinherited
price double
finalinherited
productType String
finalinherited
quantity int?
finalinherited
rating int?
finalinherited
reviewList List<Review>?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shopId String
finalinherited
specialOptions List<SpecialOption>?
finalinherited

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