Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
this_month_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 'this_month_collection_isar_model.g.dart';
7
10 @Index(type: IndexType.value)
11 Id? id;
18 int? order;
19 int? pickups;
26 double? volume;
28
29 static ThisMonthCollectionIsarModel fromModel(CollectionModel model) {
31 ..id = model.id
32 ..address = model.address
33 ..datePlanned = model.datePlanned
34 ..dateStart = model.dateStart
35 ..instructions = model.instructions
36 ..lat = model.lat
37 ..lng = model.lng
38 ..order = model.order
39 ..pickups = model.pickups
40 ..priority = model.priority?.value
41 ..reference = model.reference
42 ..restaurant = model.restaurant
43 ..restaurantId = model.restaurantId
44 ..slot = model.slot
45 ..status = model.status?.value
46 ..volume = model.volume
47 ..volumeCollected = model.volumeCollected;
48 }
49
50 CollectionModel toModel() {
51 return CollectionModel(
52 id: id,
57 lat: lat,
58 lng: lng,
59 order: order,
61 priority: collectionPriorityFromJson(priority ?? ''),
65 slot: slot,
66 status: collectionStatusFromJson(status ?? ''),
69 );
70 }
71}
Index(type:IndexType.value) Id? id
static ThisMonthCollectionIsarModel fromModel(CollectionModel model)
final String type
class Partner String
class SearchWeeklyCollectionsEvent extends WeeklyCollectionsEvent collection