OrderPrice.fromJson constructor

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

Implementation

OrderPrice.fromJson(Map<String, dynamic> json) {
  mrp = json['mrp'].toDouble();
  sellingPrice = json['sellingPrice'].toDouble();
  discount = json['discount'].toDouble();
  totalPrice = json['totalPrice'].toDouble();
  gstLabelName = json['gstLabelName'].toDouble();
  withOutGstPrice = json['withOutGstPrice'].toDouble();
  sgstLabelName = json['sgstLabelName'].toDouble();
  cgstLabelName = json['cgstLabelName'].toDouble();
  totalSgst = json['totalSgst'].toDouble();
  totalCgst = json['totalCgst'].toDouble();
  withOutSCGstPrice = json['withOutSCGstPrice'].toDouble();
  totalGst = json['totalGst'].toDouble();
  sTypename = json['__typename'];
}