You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
620 B
Dart
25 lines
620 B
Dart
4 years ago
|
class PrivilegeModel {
|
||
|
int iD;
|
||
|
String serviceName;
|
||
|
bool privilege;
|
||
|
dynamic region;
|
||
|
|
||
|
PrivilegeModel({this.iD, this.serviceName, this.privilege, this.region});
|
||
|
|
||
|
PrivilegeModel.fromJson(Map<String, dynamic> json) {
|
||
|
iD = json['ID'];
|
||
|
serviceName = json['ServiceName'];
|
||
|
privilege = json['Previlege'];
|
||
|
region = json['Region'];
|
||
|
}
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||
|
data['ID'] = this.iD;
|
||
|
data['ServiceName'] = this.serviceName;
|
||
|
data['Previlege'] = this.privilege;
|
||
|
data['Region'] = this.region;
|
||
|
return data;
|
||
|
}
|
||
|
}
|