toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['id'] = this.id;
  data['product_id'] = this.productId;
  data['title'] = this.title;
  data['price'] = this.price;
  data['sku'] = this.sku;
  data['position'] = this.position;
  data['inventory_policy'] = this.inventoryPolicy;
  data['compare_at_price'] = this.compareAtPrice;
  data['fulfillment_service'] = this.fulfillmentService;
  data['inventory_management'] = this.inventoryManagement;
  data['option1'] = this.option1;
  data['option2'] = this.option2;
  data['option3'] = this.option3;
  data['created_at'] = this.createdAt;
  data['updated_at'] = this.updatedAt;
  data['taxable'] = this.taxable;
  data['barcode'] = this.barcode;
  data['grams'] = this.grams;
  data['image_id'] = this.imageId;
  data['weight'] = this.weight;
  data['weight_unit'] = this.weightUnit;
  data['inventory_item_id'] = this.inventoryItemId;
  data['inventory_quantity'] = this.inventoryQuantity;
  data['old_inventory_quantity'] = this.oldInventoryQuantity;
  data['requires_shipping'] = this.requiresShipping;
  data['admin_graphql_api_id'] = this.adminGraphqlApiId;
  return data;
}