create static method

ItemDetail create({
  1. String? special_type,
  2. String? id,
  3. String? name,
  4. int? price,
  5. int? quantity,
  6. String? brand,
  7. String? category,
  8. String? merchant_name,
})
override

return original data json

Implementation

static ItemDetail create({

  String? special_type,
  String? id,
  String? name,
  int? price,
  int? quantity,
  String? brand,
  String? category,
  String? merchant_name,
})  {
  ItemDetail itemDetail = ItemDetail({

    "@type": special_type,
    "id": id,
    "name": name,
    "price": price,
    "quantity": quantity,
    "brand": brand,
    "category": category,
    "merchant_name": merchant_name,


});


return itemDetail;

    }