OrderPetMapModel.getData constructor
OrderPetMapModel.getData(
- Map<String, dynamic> jsonResponse
)
Implementation
factory OrderPetMapModel.getData(Map<String, dynamic> jsonResponse) => OrderPetMapModel(
CreatedAt: jsonResponse["CreatedAt"],
id: jsonResponse["id"],
orderID: jsonResponse["orderID"],
petID: jsonResponse["petID"],
sellerID: jsonResponse["sellerID"],
status: jsonResponse["status"],
estimatedDeliveryDate: jsonResponse["estimatedDeliveryDate"],
actualDeliveryDate: jsonResponse["actualDeliveryDate"],
pickupOTP: jsonResponse["pickupOTP"],
deliveryOTP: jsonResponse["deliveryOTP"],
petConfirmationTimestamp: jsonResponse["petConfirmationTimestamp"],
petReadyForPickupTimestamp: jsonResponse["petReadyForPickupTimestamp"],
petCancellationRequestTimestamp: jsonResponse["petCancellationRequestTimestamp"],
petCancellationTimestamp: jsonResponse["petCancellationTimestamp"],
petReturnRequestedTimestamp: jsonResponse["petReturnRequestedTimestamp"],
petReturnedTimestamp: jsonResponse["petReturnedTimestamp"],
petReturnRequestCancelledTimestamp: jsonResponse["petReturnRequestCancelledTimestamp"],
deliveryAgentID: jsonResponse["deliveryAgentID"],
deliveryAgentAllocationTimestamp: jsonResponse["deliveryAgentAllocationTimestamp"],
deliveryAgentAssignmentMethod: jsonResponse["deliveryAgentAssignmentMethod"],
deliveryAgentAssignmentRule: jsonResponse["deliveryAgentAssignmentRule"],
petPickupTimestamp: jsonResponse["petPickupTimestamp"],
petDeliveryTimestamp: jsonResponse["petDeliveryTimestamp"],
distancePerDelivery: jsonResponse["distancePerDelivery"],
);