Aidra Driver
1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
collection_voucher_model.dart
Go to the documentation of this file.
1
import
'../../domain/entities/collection_voucher_entity.dart';
2
3
class
CollectionVoucherModel
extends
CollectionVoucherEntity
{
4
CollectionVoucherModel
({
5
required super.id,
6
required super.volumeCollected,
7
});
8
9
factory
CollectionVoucherModel
.fromJson(Map<String, dynamic> json) {
10
return
CollectionVoucherModel
(
11
id
: json[
'id'
] as
int
,
12
volumeCollected
: (json[
'volumeCollected'
] as num).toDouble(),
13
);
14
}
15
16
Map<String, dynamic>
toJson
() {
17
return
{
18
'id'
:
id
,
19
'volumeCollected'
:
volumeCollected
,
20
};
21
}
22
}
CollectionVoucherEntity::id
final int id
Definition
collection_voucher_entity.dart:2
CollectionVoucherEntity::volumeCollected
final double volumeCollected
Definition
collection_voucher_entity.dart:3
CollectionVoucherEntity::CollectionVoucherModel
CollectionVoucherModel({ required super.id, required super.volumeCollected, })
CollectionVoucherEntity::CollectionVoucherEntity
CollectionVoucherEntity({ required this.id, required this.volumeCollected, })
CollectionVoucherEntity::toJson
Map< String, dynamic > toJson()
Definition
collection_voucher_model.dart:16
lib
features
unloading
data
models
collection_voucher_model.dart
Generated by
1.16.1