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.
1
import
'package:isar/isar.dart';
2
import
'../../../common/enums/collection_priority.dart';
3
import
'../../../common/enums/collection_status.dart';
4
import
'../../../common/models/collection_model.dart';
5
6
part
'this_month_collection_isar_model.g.dart'
;
7
8
@
collection
9
class
ThisMonthCollectionIsarModel
{
10
@
Index
(
type
: IndexType.value)
11
Id?
id
;
12
String
?
address
;
13
String
?
datePlanned
;
14
String
?
dateStart
;
15
String
?
instructions
;
16
String
?
lat
;
17
String
?
lng
;
18
int
?
order
;
19
int
?
pickups
;
20
String
?
priority
;
21
String
?
reference
;
22
String
?
restaurant
;
23
int
?
restaurantId
;
24
String
?
slot
;
25
String
?
status
;
26
double
?
volume
;
27
double
?
volumeCollected
;
28
29
static
ThisMonthCollectionIsarModel
fromModel
(CollectionModel model) {
30
return
ThisMonthCollectionIsarModel
()
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
,
53
address
:
address
,
54
datePlanned
:
datePlanned
,
55
dateStart
:
dateStart
,
56
instructions
:
instructions
,
57
lat
:
lat
,
58
lng
:
lng
,
59
order
:
order
,
60
pickups
:
pickups
,
61
priority
: collectionPriorityFromJson(
priority
??
''
),
62
reference
:
reference
,
63
restaurant
:
restaurant
,
64
restaurantId
:
restaurantId
,
65
slot
:
slot
,
66
status
: collectionStatusFromJson(
status
??
''
),
67
volume
:
volume
,
68
volumeCollected
:
volumeCollected
,
69
);
70
}
71
}
ThisMonthCollectionIsarModel
Definition
this_month_collection_isar_model.dart:9
ThisMonthCollectionIsarModel::datePlanned
String datePlanned
Definition
this_month_collection_isar_model.dart:13
ThisMonthCollectionIsarModel::address
String address
Definition
this_month_collection_isar_model.dart:12
ThisMonthCollectionIsarModel::status
String status
Definition
this_month_collection_isar_model.dart:25
ThisMonthCollectionIsarModel::order
int order
Definition
this_month_collection_isar_model.dart:18
ThisMonthCollectionIsarModel::lat
String lat
Definition
this_month_collection_isar_model.dart:16
ThisMonthCollectionIsarModel::toModel
CollectionModel toModel()
Definition
this_month_collection_isar_model.dart:50
ThisMonthCollectionIsarModel::reference
String reference
Definition
this_month_collection_isar_model.dart:21
ThisMonthCollectionIsarModel::restaurant
String restaurant
Definition
this_month_collection_isar_model.dart:22
ThisMonthCollectionIsarModel::slot
String slot
Definition
this_month_collection_isar_model.dart:24
ThisMonthCollectionIsarModel::pickups
int pickups
Definition
this_month_collection_isar_model.dart:19
ThisMonthCollectionIsarModel::instructions
String instructions
Definition
this_month_collection_isar_model.dart:15
ThisMonthCollectionIsarModel::lng
String lng
Definition
this_month_collection_isar_model.dart:17
ThisMonthCollectionIsarModel::volume
double volume
Definition
this_month_collection_isar_model.dart:26
ThisMonthCollectionIsarModel::Index
Index(type:IndexType.value) Id? id
ThisMonthCollectionIsarModel::volumeCollected
double volumeCollected
Definition
this_month_collection_isar_model.dart:27
ThisMonthCollectionIsarModel::restaurantId
int restaurantId
Definition
this_month_collection_isar_model.dart:23
ThisMonthCollectionIsarModel::dateStart
String dateStart
Definition
this_month_collection_isar_model.dart:14
ThisMonthCollectionIsarModel::priority
String priority
Definition
this_month_collection_isar_model.dart:20
ThisMonthCollectionIsarModel::fromModel
static ThisMonthCollectionIsarModel fromModel(CollectionModel model)
Definition
this_month_collection_isar_model.dart:29
id
final int id
Definition
collection_voucher_document_model.dart:42
type
final String type
Definition
collections_event.dart:13
String
class Partner String
collection
class SearchWeeklyCollectionsEvent extends WeeklyCollectionsEvent collection
lib
core
isar
models
history
this_month_collection_isar_model.dart
Generated by
1.16.1