Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
pending_collection_isar_model.dart
Go to the documentation of this file.
1import 'package:isar/isar.dart';
2import '../../../common/enums/collection_priority.dart';
3import '../../../common/enums/collection_status.dart';
4import '../../../common/models/collection_model.dart';
5
6part 'pending_collection_isar_model.g.dart';
7
10 @Index(type: IndexType.value)
11 Id? id;
18 int? order;
19 int? pickups;
26 double? volume;
27
28 static PendingCollectionIsarModel fromModel(CollectionModel model) {
30 ..id = model.id
31 ..address = model.address
32 ..datePlanned = model.datePlanned
33 ..dateStart = model.dateStart
34 ..instructions = model.instructions
35 ..lat = model.lat
36 ..lng = model.lng
37 ..order = model.order
38 ..pickups = model.pickups
39 ..priority = model.priority?.value
40 ..reference = model.reference
41 ..restaurant = model.restaurant
42 ..restaurantId = model.restaurantId
43 ..slot = model.slot
44 ..status = model.status?.value
45 ..volume = model.volume;
46 }
47
48 CollectionModel toModel() {
49 return CollectionModel(
50 id: id,
55 lat: lat,
56 lng: lng,
57 order: order,
59 priority: collectionPriorityFromJson(priority ?? ''),
63 slot: slot,
64 status: collectionStatusFromJson(status ?? ''),
66 );
67 }
68}
static PendingCollectionIsarModel fromModel(CollectionModel model)
Index(type:IndexType.value) Id? id
final String type
class Partner String
class SearchWeeklyCollectionsEvent extends WeeklyCollectionsEvent collection