create static method
ItemDetail
create({
- String? special_type,
- String? id,
- String? name,
- int? price,
- int? quantity,
- String? brand,
- String? category,
- 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;
}