toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['_id'] = this.sId;
data['packName'] = this.packName;
data['packDescription'] = this.packDescription;
data['moq'] = this.moq;
data['categoryId'] = this.categoryId;
data['packVariant'] = this.packVariant;
if (this.packColorLabel != null) {
data['packColorLabel'] =
this.packColorLabel.map((v) => v.toJson()).toList();
}
if (this.headSetInformation != null) {
data['headSetInformation'] = this.headSetInformation!.toJson();
}
if (this.packImages != null) {
data['packImages'] = this.packImages.map((v) => v.toJson()).toList();
}
if (this.packOptions != null) {
data['packOptions'] = this.packOptions.map((v) => v.toJson()).toList();
}
data['__typename'] = this.sTypename;
return data;
}