You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.1 KiB
65 lines
2.1 KiB
class RoseData {
|
|
String? productId;
|
|
String? productSpecId;
|
|
num? mainCategory;
|
|
int? subCategory;
|
|
String? productTitle;
|
|
String? productDesc;
|
|
String? detailDesc;
|
|
num? unitOriginalPrice;
|
|
num? unitSellingPrice;
|
|
String? purchaseTimeValue;
|
|
String? validityPeriodDays;
|
|
String? liveDurationHours;
|
|
String? unitSellingPriceStr;
|
|
|
|
RoseData(
|
|
{this.productId,
|
|
this.productSpecId,
|
|
this.mainCategory,
|
|
this.subCategory,
|
|
this.productTitle,
|
|
this.productDesc,
|
|
this.detailDesc,
|
|
this.unitOriginalPrice,
|
|
this.unitSellingPrice,
|
|
this.purchaseTimeValue,
|
|
this.validityPeriodDays,
|
|
this.liveDurationHours,
|
|
this.unitSellingPriceStr,
|
|
});
|
|
|
|
RoseData.fromJson(Map<String, dynamic> json) {
|
|
productId = json['productId'];
|
|
productSpecId = json['productSpecId'];
|
|
mainCategory = json['mainCategory'];
|
|
subCategory = json['subCategory'];
|
|
productTitle = json['productTitle'];
|
|
productDesc = json['productDesc'];
|
|
detailDesc = json['detailDesc'];
|
|
unitOriginalPrice = json['unitOriginalPrice'];
|
|
unitSellingPrice = json['unitSellingPrice'];
|
|
purchaseTimeValue = json['purchaseTimeValue'];
|
|
validityPeriodDays = json['validityPeriodDays'];
|
|
liveDurationHours = json['liveDurationHours'];
|
|
unitSellingPriceStr = json['unitSellingPriceStr'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['productId'] = this.productId;
|
|
data['productSpecId'] = this.productSpecId;
|
|
data['mainCategory'] = this.mainCategory;
|
|
data['subCategory'] = this.subCategory;
|
|
data['productTitle'] = this.productTitle;
|
|
data['productDesc'] = this.productDesc;
|
|
data['detailDesc'] = this.detailDesc;
|
|
data['unitOriginalPrice'] = this.unitOriginalPrice;
|
|
data['unitSellingPrice'] = this.unitSellingPrice;
|
|
data['purchaseTimeValue'] = this.purchaseTimeValue;
|
|
data['validityPeriodDays'] = this.validityPeriodDays;
|
|
data['liveDurationHours'] = this.liveDurationHours;
|
|
data['unitSellingPriceStr'] = this.unitSellingPriceStr;
|
|
return data;
|
|
}
|
|
}
|