toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['key'] = this.key;
  data['id'] = this.id;
  data['quantity'] = this.quantity;
  data['name'] = this.name;
  data['sku'] = this.sku;
  data['permalink'] = this.permalink;
  if (this.images != null) {
    data['images'] = this.images!.map((v) => v.toJson()).toList();
  }
  data['price'] = this.price;
  data['line_price'] = this.linePrice;
  data['variation'] = this.variation;
  return data;
}