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.
207 lines
5.6 KiB
Dart
207 lines
5.6 KiB
Dart
// ignore_for_file: prefer_single_quotes, lines_longer_than_80_chars final
|
|
// link to generate dart class https://www.webinovers.com/web-tools/json-to-dart-convertor
|
|
|
|
Map<String, dynamic> _env = {
|
|
"appConfig": "lib/config/config_en.json",
|
|
"login": {
|
|
"verification": true,
|
|
"verificationMethod": {
|
|
"whatsapp": false,
|
|
},
|
|
"forgetPassword": false
|
|
},
|
|
"bottomBar": false,
|
|
"dashboard": {
|
|
"attendance": false,
|
|
"worklist": true,
|
|
"ticketBalance": false,
|
|
"leaveBalance": true,
|
|
"missingSwipe": false,
|
|
"monthlyAttendance": false,
|
|
"vocationRules": false,
|
|
},
|
|
"itg": false,
|
|
"marathon": false,
|
|
"offersDiscount": false,
|
|
"myTeams": false,
|
|
"modifiy": false,
|
|
"myRequest": false,
|
|
"pendingTransactions": false,
|
|
"myProfile": false,
|
|
"itemsForSale": false,
|
|
"chat": false,
|
|
"monthlyAttendance": true,
|
|
"vocationRules": false,
|
|
"canEdit": false,
|
|
};
|
|
|
|
Env env = Env.fromJson(_env);
|
|
|
|
class Env {
|
|
Env({
|
|
required this.appConfig,
|
|
required this.login,
|
|
required this.bottomBar,
|
|
required this.dashboard,
|
|
required this.itg,
|
|
required this.marathon,
|
|
required this.offersDiscount,
|
|
required this.myTeams,
|
|
required this.modifiy,
|
|
required this.myRequest,
|
|
required this.pendingTransactions,
|
|
required this.myProfile,
|
|
required this.itemsForSale,
|
|
required this.chat,
|
|
required this.monthlyAttendance,
|
|
required this.vocationRules,
|
|
required this.canEdit,
|
|
});
|
|
|
|
late final String appConfig;
|
|
late final Login login;
|
|
late final bool bottomBar;
|
|
late final Dashboard dashboard;
|
|
late final bool itg;
|
|
late final bool marathon;
|
|
late final bool offersDiscount;
|
|
late final bool myTeams;
|
|
late final bool modifiy;
|
|
late final bool myRequest;
|
|
late final bool pendingTransactions;
|
|
late final bool myProfile;
|
|
late final bool itemsForSale;
|
|
late final bool chat;
|
|
late final bool monthlyAttendance;
|
|
late final bool vocationRules;
|
|
late final bool canEdit;
|
|
|
|
Env.fromJson(Map<String, dynamic> json) {
|
|
appConfig = json['appConfig'];
|
|
login = Login.fromJson(json['login']);
|
|
bottomBar = json['bottomBar'];
|
|
dashboard = Dashboard.fromJson(json['dashboard']);
|
|
marathon = json['marathon'];
|
|
itg = json['itg'];
|
|
offersDiscount = json['offersDiscount'];
|
|
myTeams = json['myTeams'];
|
|
modifiy = json['modifiy'];
|
|
myRequest = json['myRequest'];
|
|
pendingTransactions = json['pendingTransactions'];
|
|
myProfile = json['myProfile'];
|
|
itemsForSale = json['itemsForSale'];
|
|
chat = json['chat'];
|
|
monthlyAttendance = json['monthlyAttendance'];
|
|
vocationRules = json['vocationRules'];
|
|
canEdit = json['canEdit'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
var _data = <String, dynamic>{};
|
|
_data['appConfig'] = appConfig;
|
|
_data['login'] = login.toJson();
|
|
_data['bottomBar'] = bottomBar;
|
|
_data['dashboard'] = dashboard.toJson();
|
|
_data['marathon'] = marathon;
|
|
_data['itg'] = itg;
|
|
_data['offersDiscount'] = offersDiscount;
|
|
_data['myTeams'] = myTeams;
|
|
_data['modifiy'] = modifiy;
|
|
_data['myRequest'] = myRequest;
|
|
_data['pendingTransactions'] = pendingTransactions;
|
|
_data['myProfile'] = myProfile;
|
|
_data['itemsForSale'] = itemsForSale;
|
|
_data['chat'] = chat;
|
|
_data['monthlyAttendance'] = monthlyAttendance;
|
|
_data['vocationRules'] = vocationRules;
|
|
_data['canEdit'] = canEdit;
|
|
return _data;
|
|
}
|
|
}
|
|
|
|
class Login {
|
|
Login({
|
|
required this.verification,
|
|
required this.verificationMethod,
|
|
required this.forgetPassword,
|
|
});
|
|
|
|
late final bool verification;
|
|
late final VerificationMethod verificationMethod;
|
|
late final bool forgetPassword;
|
|
|
|
Login.fromJson(Map<String, dynamic> json) {
|
|
verification = json['verification'];
|
|
verificationMethod = VerificationMethod.fromJson(json['verificationMethod']);
|
|
forgetPassword = json['forgetPassword'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
var _data = <String, dynamic>{};
|
|
_data['verification'] = verification;
|
|
_data['verificationMethod'] = verificationMethod.toJson();
|
|
_data['forgetPassword'] = forgetPassword;
|
|
return _data;
|
|
}
|
|
}
|
|
|
|
class VerificationMethod {
|
|
VerificationMethod({
|
|
required this.whatsapp,
|
|
});
|
|
|
|
late final bool whatsapp;
|
|
|
|
VerificationMethod.fromJson(Map<String, dynamic> json) {
|
|
whatsapp = json['whatsapp'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
var _data = <String, dynamic>{};
|
|
_data['whatsapp'] = whatsapp;
|
|
return _data;
|
|
}
|
|
}
|
|
|
|
class Dashboard {
|
|
Dashboard({
|
|
required this.attendance,
|
|
required this.worklist,
|
|
required this.ticketBalance,
|
|
required this.leaveBalance,
|
|
required this.missingSwipe,
|
|
required this.monthlyAttendance,
|
|
required this.vocationRules,
|
|
});
|
|
|
|
late final bool attendance;
|
|
late final bool worklist;
|
|
late final bool ticketBalance;
|
|
late final bool leaveBalance;
|
|
late final bool missingSwipe;
|
|
late final bool monthlyAttendance;
|
|
late final bool vocationRules;
|
|
|
|
Dashboard.fromJson(Map<String, dynamic> json) {
|
|
attendance = json['attendance'];
|
|
worklist = json['worklist'];
|
|
ticketBalance = json['ticketBalance'];
|
|
leaveBalance = json['leaveBalance'];
|
|
missingSwipe = json['missingSwipe'];
|
|
monthlyAttendance = json['monthlyAttendance'];
|
|
vocationRules = json['vocationRules'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
var _data = <String, dynamic>{};
|
|
_data['attendance'] = attendance;
|
|
_data['worklist'] = worklist;
|
|
_data['ticketBalance'] = ticketBalance;
|
|
_data['leaveBalance'] = leaveBalance;
|
|
_data['missingSwipe'] = missingSwipe;
|
|
_data['monthlyAttendance'] = monthlyAttendance;
|
|
_data['vocationRules'] = vocationRules;
|
|
return _data;
|
|
}
|
|
}
|