Product class
Product model
- Annotations
-
- @freezed
Constructors
-
Product.new({required int id, required String sku, required String name, required String typeId, required double price, double? specialPrice, required int status, required int visibility, required int stockStatus, int? stockQuantity, String? description, String? shortDescription, String? metaTitle, String? metaDescription, String? metaKeyword, List<
String> ? categories, List<String> ? websites, List<CustomAttribute> ? customAttributes, List<MediaGalleryEntry> ? mediaGalleryEntries, List<ProductOption> ? options, List<ProductLink> ? productLinks, List<TierPrice> ? tierPrices, List<Review> ? reviews, DateTime? createdAt, DateTime? updatedAt}) -
constfactory
-
Product.fromJson(Map<
String, dynamic> json) -
factory
Properties
- currentPrice → double
-
no setter
- discountPercentage → double
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSpecialPrice → bool
-
no setter
- isAvailable → bool
-
no setter
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited