toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (active != null) 'active': active!,
      if (currency != null) 'currency': currency!,
      if (deliveryCountry != null) 'deliveryCountry': deliveryCountry!,
      if (deliveryTime != null) 'deliveryTime': deliveryTime!,
      if (eligibility != null) 'eligibility': eligibility!,
      if (minimumOrderValue != null) 'minimumOrderValue': minimumOrderValue!,
      if (minimumOrderValueTable != null)
        'minimumOrderValueTable': minimumOrderValueTable!,
      if (name != null) 'name': name!,
      if (pickupService != null) 'pickupService': pickupService!,
      if (rateGroups != null) 'rateGroups': rateGroups!,
      if (shipmentType != null) 'shipmentType': shipmentType!,
      if (storeConfig != null) 'storeConfig': storeConfig!,
    };