// 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 _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": false, "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 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 toJson() { var _data = {}; _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 json) { verification = json['verification']; verificationMethod = VerificationMethod.fromJson(json['verificationMethod']); forgetPassword = json['forgetPassword']; } Map toJson() { var _data = {}; _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 json) { whatsapp = json['whatsapp']; } Map toJson() { var _data = {}; _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 json) { attendance = json['attendance']; worklist = json['worklist']; ticketBalance = json['ticketBalance']; leaveBalance = json['leaveBalance']; missingSwipe = json['missingSwipe']; monthlyAttendance = json['monthlyAttendance']; vocationRules = json['vocationRules']; } Map toJson() { var _data = {}; _data['attendance'] = attendance; _data['worklist'] = worklist; _data['ticketBalance'] = ticketBalance; _data['leaveBalance'] = leaveBalance; _data['missingSwipe'] = missingSwipe; _data['monthlyAttendance'] = monthlyAttendance; _data['vocationRules'] = vocationRules; return _data; } }