STRCartItem.fromJson constructor

STRCartItem.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory STRCartItem.fromJson(Map<String, dynamic> json) {
  return STRCartItem(
    item: STRProductItem.fromJson(json['item']),
    quantity: json['quantity'],
    oldTotalPrice: json['oldTotalPrice'],
    totalPrice: json['totalPrice'],
  );
}