NewDeliveryRequest.fromMap constructor
NewDeliveryRequest.fromMap(
- Map map
Implementation
factory NewDeliveryRequest.fromMap(Map<dynamic, dynamic> map) {
return NewDeliveryRequest(
pickup_address: Address.fromMap(map['pickup_address'] as Map<String,dynamic>),
delivery_address: Address.fromMap(map['delivery_address'] as Map<String,dynamic>),
recipient_name: map['recipient_name'] as String,
recipient_mobile: map['recipient_mobile'] as String,
item_type: map['item_type'] as String,
pickup_time: map['pickup_time'] as String,
);
}