Delivery.fromMap constructor

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

Implementation

factory Delivery.fromMap(Map<String, dynamic> json) => Delivery(
      type: json["type"],
      time: json["time"] == null
          ? null
          : DateTime.tryParse(json["time"])?.toLocal(),
      doorToDoor: json["door_to_door"],
      productPaid: json["product_paid"],
      equipmentId: json["equipment_id"],
    );