toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.totalCartPrice != null) {
data['totalCartPrice'] = this.totalCartPrice!.toJson();
}
if (this.products != null) {
data['products'] = this.products!.map((v) => v.toJson()).toList();
}
data['__typename'] = this.sTypename;
return data;
}