Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
req_collection_rating_model.dart
Go to the documentation of this file.
1import '../../../domain/entities/req/req_collection_rating_entity.dart';
2
5 required super.id,
6 required super.rate,
7 required super.reasonId,
8 required super.note,
9 });
10
13 id: entity.id,
14 rate: entity.rate,
15 reasonId: entity.reasonId,
16 note: entity.note,
17 );
18 }
19
20 factory ReqCollectionRatingModel.fromJson(Map<String, dynamic> json) {
22 id: json['id'],
23 rate: json['rate'],
24 reasonId: json['reasonId'],
25 note: json['note'],
26 );
27 }
28
29 Map<String, dynamic> toJson() {
30 return {
31 'id': id,
32 'rate': rate,
33 'reasonId': reasonId,
34 'note': note,
35 };
36 }
37}
ReqCollectionRatingModel({ required super.id, required super.rate, required super.reasonId, required super.note, })
ReqCollectionRatingEntity({ required this.id, required this.rate, required this.reasonId, required this.note })