CalculateModel.fromMap constructor

CalculateModel.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory CalculateModel.fromMap(Map<String, dynamic> json) => CalculateModel(
  totalDeliveryPrice: json["total_delivery_price"],
  etaToPu: json["eta_to_pu"] == null ? null : DateTime.parse(json["eta_to_pu"]),
  etaToDel: json["eta_to_del"] == null ? null : DateTime.parse(json["eta_to_del"]),
  orderDistance: json["order_distance"],
  deadHeadDistance: json["dead_head_distance"],
  evaluatedStage: json["evaluated_stage"],
);