BusinessOrder.fromJson constructor

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

Implementation

factory BusinessOrder.fromJson(Map<String, dynamic> json) => BusinessOrder(
      pickup: json["pickup"] ?? false,
      delivery: json["delivery"] ?? false,
      autoAccept: json["autoAccept"] ?? false,
      cancelFromUser: json["cancelFromUser"] ?? false,
      cashOnDelivery: json["cashOnDelivery"] ?? [],
      orderDeliveryCharge: json["orderDeliveryCharge"] ?? 0.0,
      orderPreparationTime: json["orderPreparartionTime"] ?? 0,
      orderDeliveryChargeType: json["orderDeliveryChargeType"] ?? "",
      orderDeliveryChargeOnMinAmount:
          json["orderDeliveryChargeOnMinAmount"] ?? "",
    );