DelhiveryShippingFees.fromJson constructor

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

Implementation

DelhiveryShippingFees.fromJson(Map<String, dynamic> json) {
  fees = json['fees'] == 0 ? json['fees'].toDouble() : json['fees'];
  shippingIGST = json['shippingIGST'] == 0
      ? json['shippingIGST'].toDouble()
      : json['shippingIGST'];
  shippingSGST = json['shippingSGST'] == 0
      ? json['shippingSGST'].toDouble()
      : json['shippingSGST'];
  shippingCGST = json['shippingCGST'] == 0
      ? json['shippingCGST'].toDouble()
      : json['shippingCGST'];
  sTypename = json['__typename'];
}