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