ListingItem class Null safety

Constructors

ListingItem({double? rating, int? colorOptions, List<Size>? sizes, List<ColorModel>? colors, bool? preOrder, DateTime? availabilityDate, int? id, int? productId, String? productCode, String? imageUrl, String? imageThumbUrl, String? title, String? seoTitle, bool? isOutOfStock, double? price, double? finalPrice, bool? hasDiscount, double? discountValue, int? discountType, String? promoText, String? bogoPromoText, String? croppedImageUrl, bool? enableCropping, String? size, int? sizeId, String? colorHexaCode, String? color, int? colorId})
ListingItem.fromJson(Map<String, dynamic> json)
factory

Properties

availabilityDate DateTime?
read / write
bogoPromoText String?
read / write
color String?
read / write
colorHexaCode String?
read / write
colorId int?
read / write
colorOptions int?
read / write
colors List<ColorModel>?
read / write
croppedImageUrl String?
read / write
discountType int?
read / write
discountValue double?
read / write
enableCropping bool?
read / write
finalPrice double?
read / write
hasDiscount bool?
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int?
read / write
imageThumbUrl String?
read / write
imageUrl String?
read / write
isOutOfStock bool?
read / write
preOrder bool?
read / write
price double?
read / write
productCode String?
read / write
productId int?
read / write
promoText String?
read / write
rating double?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seoTitle String?
read / write
size String?
read / write
sizeId int?
read / write
sizes List<Size>?
read / write
title String?
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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