Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
update_collection_req_entity.dart
Go to the documentation of this file.
2 final num? id;
3 final String? collectionRequest;
4 final String? instruction;
5 final DateTime? dateOrder;
6 final num? quantity;
7 final int? partnerId;
8 final int? proposedTimeId;
9 final int? userId;
10
12 this.id,
13 this.collectionRequest,
14 this.instruction,
15 this.dateOrder,
16 this.quantity,
17 this.partnerId,
18 this.proposedTimeId,
19 this.userId,
20 });
21
22 Map<String, dynamic> toJson() {
23 return {
24 "id": id,
25 "collectionRequest": collectionRequest,
26 "instruction": instruction,
27 "dateOrder": dateOrder?.toIso8601String(),
28 "orderLines": quantity != null
29 ? [
30 {
31 "partnerId": partnerId,
32 "productQty": quantity?.toDouble(),
33 }
34 ]
35 : [],
36 "partner": partnerId != null ? {"id": partnerId} : null,
37 "proposedTime": proposedTimeId != null ? {"id": proposedTimeId} : null,
38 "user": userId != null ? {"id": userId} : null,
39 };
40 }
41}
UpdateCollectionReqEntity({ this.id, this.collectionRequest, this.instruction, this.dateOrder, this.quantity, this.partnerId, this.proposedTimeId, this.userId, })