Price.fromJson constructor

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

Implementation

Price.fromJson(Map<String, dynamic> json) {
  totalPrice = json['totalPrice']?.toDouble();
  totalGstPrice = json['totalGstPrice']?.toDouble();
  totalWithOutGstPrice = json['totalWithOutGstPrice']?.toDouble();
  totalWithOutSCGstPrice = json['totalWithOutSCGstPrice']?.toDouble();
  totalMrp = json['totalMrp']?.toDouble();
  shippingPrice = json['shippingPrice']?.toDouble();
  shippingGstPrice = json['shippingGstPrice']?.toDouble();
  shippingCgstPrice = json['shippingCgstPrice']?.toDouble();
  shippingSgstPrice = json['shippingSgstPrice']?.toDouble();
  resellerPrice = json['resellerPrice']?.toDouble() ?? 0.0;
  sTypename = json['__typename'];
}