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.
healthcare-frontend/lib/models/cart_items_model.dart

35 lines
469 B

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;
}
}