toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': this.name,
    'sku': this.sku,
    'quantity': this.quantity,
    'price': this.price,
    'variant': this.variant,
    'category': this.category,
    'brand': this.brand,
    'position': this.position,
    'couponCode': this.couponCode,
    'attributes': this.attributes
  };
}