toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
data['description'] = this.description;
data['productFamilyId'] = this.productFamilyId;
data['productFamilyName'] = this.productFamilyName;
if (this.productSubGroup != null) {
data['productSubGroup'] =
this.productSubGroup!.map((v) => v.toJson()).toList();
}
data['isBundleOffer'] = this.isBundleOffer;
data['isRecharge'] = this.isRecharge;
data['isEvc'] = this.isEvc;
return data;
}