You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
469 B
35 lines
469 B
6 months ago
|
|
||
|
|
||
|
class CartItemsModel {
|
||
|
String medicine_name='';
|
||
|
String quantity='';
|
||
|
String price='';
|
||
|
List items=[];
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
CartItemsModel();
|
||
|
|
||
|
factory CartItemsModel.fromJson(Map<String, dynamic> json){
|
||
|
CartItemsModel rtvm = new CartItemsModel();
|
||
|
|
||
|
//rtvm.items=json['items']??[];
|
||
|
rtvm.medicine_name = json['medicinename']?? '';
|
||
|
rtvm.quantity =json['quantity'].toString()?? '';
|
||
|
rtvm.price = json['price'].toString()?? '';
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
return rtvm;
|
||
|
}
|
||
|
|
||
|
}
|