import 'package:meta/meta.dart'; class Subtitle{ // http requests status messages String currentlyServiceNotAvailable; String waitUntilYourRequestComplete; String requestCompleteSuccessfully; String failedToCompleteRequest; // dialogs // words String signOut; String exit; String confirm; String cancel; // phrases String signOutAlert; String exitAlert; // image picker String pickFromCamera; String pickFromGallery; String maxImagesNumberIs5; String imagesRequired; String images; // login and register page // words String language; String name; String email; String phoneNumber; String password; String confirmPassword; String showPassword; String forgetPassword; String forgetPasswordWithMark; String signIn; String signUp; // phrases String wrongEmailOrPassword; String emailExist; String nameExist; String phoneNumberExist; String nameValidateMessage; String emailValidateMessage; String phoneNumberValidateMessage; String passwordValidateMessage; String confirmPasswordValidateMessage; // commend words String title; String address; String description; String update; String next; String back; String edit; String search; String searchByName; String from; String to; String descriptionValidateMessage; String titleValidateMessage; String addressValidateMessage; String nameNotFound; String titleNotFound; String phoneNumberNotFound; String emailNotFound; String descriptionNotFound; String addressNotFound; String dataNotFound; String linkNotFound; String urlNotFound; // notifications String notifications; String notificationsNotFound; // service request String createServiceRequest; String hospital; String device; String deviceImages; String pickDevice; String maintenanceIssue; String create; String delete; String newServiceRequest; String trackServiceRequest; String hospitalRequired; String deviceRequired; String maintenanceIssueRequired; String add; String noServiceRequestFound; String noModelFound; String noSnFound; String noDateFound; String requestInformation; String clearSearch; String deviceName; String serialNumber; String code; String deviceSN; String deviceModel; String engineerName; String engineerPhone; String date; String status; String unite; String unitRequired; String deviceArName; String deviceEnName; String details; String general; String serviceRequestInformation; String faultDescription; String workPerformed; String visitDate; String nextVisitDate; String jobSheetNumber; String noHospitalFound; String pickHospital; String pickUnite; String noUniteFound; String serviceRequests; // device String model; String brand; String sn; String searchBySn; String noDeviceFound; // report issue String reason1; String reason2; String reason3; String reason4; String reason5; String reportIssue; String submit; String shareAntherIssue; // request status String newWord; String repaired; String repeated; String closed; String underRepair; // visit status String done; String notYet; String onHold; // land page String hotLine; String facebook; String linkedIn; String twitter; String whatsApp; String ourWebsite; String shareApp; String policy; // visits String preventiveMaintenance; String regularVisits; String updatePreventiveMaintenance; String updateRegularVisits; String preventiveMaintenanceUpdatedSuccessfully; String regularVisitsUpdatedSuccessfully; String updatingDots; String updateVisitsGroup; String noSerialNumberFound; String requiredStatus; String visitInformation; String expectDate; String actualDate; String noVisitsFound; String contactStatus; String workingHours; String travelingHours; String image; String pickImage; String requiredImage; String taskStatus; String activationAlert; // service report String newServiceReport; String editServiceReport; String callId; String customer; String reportType; String requiredWord; String serviceType; String reportStatus; String callLastSituation; String invoiceNumber; String invoiceCode; String workPreformed; String reasons; String attachImage; String operatingHours; String partNumber; String number; String quantity; // all String duplicateRequest; String duplicateAlert; String duplicateAlertMessage; String alert; void setIssues(List issues){ issues.clear(); issues.add(reason1); issues.add(reason2); issues.add(reason3); issues.add(reason4); issues.add(reason5); } Subtitle({ @required this.currentlyServiceNotAvailable, @required this.waitUntilYourRequestComplete, @required this.requestCompleteSuccessfully, @required this.failedToCompleteRequest, @required this.update, @required this.cancel, @required this.confirm, @required this.exit, @required this.exitAlert, @required this.signOutAlert, @required this.language, @required this.name, @required this.email, @required this.phoneNumber, @required this.password, @required this.forgetPassword, @required this.confirmPassword, @required this.signIn, @required this.signUp, @required this.nameValidateMessage, @required this.emailValidateMessage, @required this.phoneNumberValidateMessage, @required this.passwordValidateMessage, @required this.confirmPasswordValidateMessage, @required this.emailExist, @required this.forgetPasswordWithMark, @required this.phoneNumberExist, @required this.showPassword, @required this.signOut, @required this.wrongEmailOrPassword, @required this.next, @required this.back, @required this.search, @required this.searchByName, @required this.address, @required this.description, @required this.title, @required this.addressNotFound, @required this.addressValidateMessage, @required this.dataNotFound, @required this.descriptionNotFound, @required this.descriptionValidateMessage, @required this.edit, @required this.emailNotFound, @required this.from, @required this.linkNotFound, @required this.nameNotFound, @required this.phoneNumberNotFound, @required this.titleNotFound, @required this.titleValidateMessage, @required this.to, @required this.urlNotFound, @required this.nameExist, @required this.unitRequired, @required this.unite, @required this.hospitalRequired, @required this.whatsApp, @required this.submit, @required this.shareAntherIssue, @required this.reportIssue, @required this.noUniteFound, @required this.pickUnite, @required this.noHospitalFound, @required this.pickHospital, @required this.shareApp, @required this.ourWebsite, @required this.linkedIn, @required this.facebook, @required this.hotLine, @required this.trackServiceRequest, @required this.newServiceRequest, @required this.deviceModel, @required this.noServiceRequestFound, @required this.engineerName, @required this.serviceRequests, @required this.jobSheetNumber, @required this.visitDate, @required this.workPerformed, @required this.faultDescription, @required this.serviceRequestInformation, @required this.maintenanceIssue, @required this.deviceArName, @required this.hospital, @required this.status, @required this.date, @required this.engineerPhone, @required this.device, @required this.deviceSN, @required this.details, @required this.requestInformation, @required this.model, @required this.brand, @required this.noDeviceFound, @required this.noDateFound, @required this.searchBySn, @required this.pickDevice, @required this.notifications, @required this.notificationsNotFound, @required this.twitter, @required this.add, @required this.code, @required this.deviceEnName, @required this.deviceName, @required this.serialNumber, @required this.policy, @required this.clearSearch, @required this.closed, @required this.create, @required this.createServiceRequest, @required this.delete, @required this.deviceImages, @required this.deviceRequired, @required this.general, @required this.maintenanceIssueRequired, @required this.maxImagesNumberIs5, @required this.newWord, @required this.noModelFound, @required this.noSnFound, @required this.reason1, @required this.reason2, @required this.reason3, @required this.reason4, @required this.reason5, @required this.repaired, @required this.repeated, @required this.sn, @required this.underRepair, @required this.actualDate, @required this.expectDate, @required this.visitInformation, @required this.regularVisitsUpdatedSuccessfully, @required this.regularVisits, @required this.updateRegularVisits, @required this.updatingDots, @required this.preventiveMaintenanceUpdatedSuccessfully, @required this.updatePreventiveMaintenance, @required this.preventiveMaintenance, @required this.requiredStatus, @required this.noSerialNumberFound, @required this.updateVisitsGroup, @required this.pickFromGallery, @required this.pickFromCamera, @required this.images, @required this.done, @required this.imagesRequired, @required this.notYet, @required this.noVisitsFound, @required this.onHold, @required this.nextVisitDate, @required this.contactStatus, @required this.travelingHours, @required this.workingHours, @required this.taskStatus, @required this.image, @required this.pickImage, @required this.requiredImage, @required this.activationAlert, @required this.callId, @required this.requiredWord, @required this.quantity, @required this.callLastSituation, @required this.invoiceNumber, @required this.invoiceCode, @required this.attachImage, @required this.customer, @required this.editServiceReport, @required this.newServiceReport, @required this.number, @required this.operatingHours, @required this.partNumber, @required this.reasons, @required this.reportStatus, @required this.reportType, @required this.serviceType, @required this.workPreformed, @required this.alert, @required this.duplicateAlert, @required this.duplicateAlertMessage, @required this.duplicateRequest, }); factory Subtitle.fromJson(Map parsedJson){ return Subtitle( currentlyServiceNotAvailable: parsedJson["server_error_message"], failedToCompleteRequest: parsedJson["failed_request_message"], requestCompleteSuccessfully: parsedJson["successful_request_message"], waitUntilYourRequestComplete: parsedJson["request_lock_message"], update: parsedJson["update"], cancel: parsedJson["cancel"], confirm: parsedJson["confirm"], exit: parsedJson["exit"], exitAlert: parsedJson["exit_alert"], signOut: parsedJson["sign_out"], signOutAlert: parsedJson["logout_alert"], language: parsedJson["language"], name: parsedJson["name"], email: parsedJson["email"], phoneNumber: parsedJson["phone_number"], password: parsedJson["password"], confirmPassword: parsedJson["confirm_password"], signUp: parsedJson["sign_up"], signIn: parsedJson["sign_in"], forgetPassword: parsedJson["forget_password"], emailValidateMessage: parsedJson["email_validate_message"], nameValidateMessage: parsedJson["name_validate_message"], passwordValidateMessage: parsedJson["password_validate_message"], confirmPasswordValidateMessage: parsedJson["confirm_password_validate_message"], phoneNumberValidateMessage: parsedJson["phone_number_validate_message"], forgetPasswordWithMark: parsedJson["forget_password_with_mark"], showPassword: parsedJson["show_password"], wrongEmailOrPassword: parsedJson["wrong_email_or_password"], emailExist: parsedJson["email_exist"], phoneNumberExist: parsedJson["phone_number_exist"], next: parsedJson["next"], back: parsedJson["back"], search: parsedJson["search"], searchByName: parsedJson["search_by_name"], address: parsedJson["address"], addressNotFound: parsedJson["address_not_found"], addressValidateMessage: parsedJson["address_validate_message"], dataNotFound: parsedJson["data_not_found"], description: parsedJson["description"], descriptionNotFound: parsedJson["description_not_found"], descriptionValidateMessage: parsedJson["description_validate_message"], edit: parsedJson["edit"], emailNotFound: parsedJson["email_not_found"], from: parsedJson["from"], to: parsedJson["to"], linkNotFound: parsedJson["link_not_found"], nameNotFound: parsedJson["name_not_found"], phoneNumberNotFound: parsedJson["phone_number_not_found"], title: parsedJson["title"], titleNotFound: parsedJson["title_not_found"], titleValidateMessage: parsedJson["title_validate_message"], urlNotFound: parsedJson["url_not_found"], date: parsedJson["date"], status: parsedJson["status"], code: parsedJson["code"], serialNumber: parsedJson["serialNumber"], add: parsedJson["add"], brand: parsedJson["brand"], clearSearch: parsedJson["clearSearch"], closed: parsedJson["closed"], create: parsedJson["create"], createServiceRequest: parsedJson["createServiceRequest"], delete: parsedJson["delete"], details: parsedJson["details"], device: parsedJson["device"], deviceArName: parsedJson["deviceArName"], deviceEnName: parsedJson["deviceEnName"], deviceImages: parsedJson["deviceImages"], deviceModel: parsedJson["deviceModel"], deviceName: parsedJson["deviceName"], deviceRequired: parsedJson["deviceRequired"], deviceSN: parsedJson["deviceSN"], engineerName: parsedJson["engineerName"], engineerPhone: parsedJson["engineerPhone"], facebook: parsedJson["facebook"], faultDescription: parsedJson["faultDescription"], general: parsedJson["general"], hospital: parsedJson["hospital"], hospitalRequired: parsedJson["hospitalRequired"], hotLine: parsedJson["hotLine"], jobSheetNumber: parsedJson["jobSheetNumber"], linkedIn: parsedJson["linkedIn"], maintenanceIssue: parsedJson["maintenanceIssue"], maintenanceIssueRequired: parsedJson["maintenanceIssueRequired"], maxImagesNumberIs5: parsedJson["maxImagesNumberIs5"], model: parsedJson["model"], nameExist: parsedJson["nameExist"], newServiceRequest: parsedJson["newServiceRequest"], newWord: parsedJson["newWord"], noDateFound: parsedJson["noDateFound"], noDeviceFound: parsedJson["noDeviceFound"], noHospitalFound: parsedJson["noHospitalFound"], noModelFound: parsedJson["noModelFound"], noServiceRequestFound: parsedJson["noServiceRequestFound"], noSnFound: parsedJson["noSnFound"], notifications: parsedJson["notifications"], notificationsNotFound: parsedJson["notificationsNotFound"], noUniteFound: parsedJson["noUniteFound"], ourWebsite: parsedJson["ourWebsite"], pickDevice: parsedJson["pickDevice"], pickHospital: parsedJson["pickHospital"], pickUnite: parsedJson["pickUnite"], policy: parsedJson["policy"], reason1: parsedJson["reason1"], reason2: parsedJson["reason2"], reason3: parsedJson["reason3"], reason4: parsedJson["reason4"], reason5: parsedJson["reason5"], repaired: parsedJson["repaired"], repeated: parsedJson["repeated"], reportIssue: parsedJson["reportIssue"], requestInformation: parsedJson["requestInformation"], searchBySn: parsedJson["searchBySn"], serviceRequestInformation: parsedJson["serviceRequestInformation"], serviceRequests: parsedJson["serviceRequests"], shareAntherIssue: parsedJson["shareAntherIssue"], shareApp: parsedJson["shareApp"], sn: parsedJson["sn"], submit: parsedJson["submit"], trackServiceRequest: parsedJson["trackServiceRequest"], twitter: parsedJson["twitter"], underRepair: parsedJson["underRepair"], unite: parsedJson["unite"], unitRequired: parsedJson["uniteRequired"], visitDate: parsedJson["visitDate"], whatsApp: parsedJson["whatsApp"], workPerformed: parsedJson["workPerformed"], actualDate: parsedJson["actualDate"], done: parsedJson["done"], expectDate: parsedJson["expectDate"], images: parsedJson["images"], imagesRequired: parsedJson["imagesRequired"], noSerialNumberFound: parsedJson["noSerialNumberFound"], notYet: parsedJson["notYet"], noVisitsFound: parsedJson["noVisitsFound"], onHold: parsedJson["onHold"], pickFromCamera: parsedJson["pickFromCamera"], pickFromGallery: parsedJson["pickFromGallery"], preventiveMaintenance: parsedJson["preventiveMaintenance"], preventiveMaintenanceUpdatedSuccessfully: parsedJson["preventiveMaintenanceUpdatedSuccessfully"], regularVisits: parsedJson["regularVisits"], regularVisitsUpdatedSuccessfully: parsedJson["regularVisitsUpdatedSuccessfully"], requiredStatus: parsedJson["requiredStatus"], updatePreventiveMaintenance: parsedJson["updatePreventiveMaintenance"], updateRegularVisits: parsedJson["updateRegularVisits"], updateVisitsGroup: parsedJson["updateVisitsGroup"], updatingDots: parsedJson["updatingDots"], visitInformation: parsedJson["visitInformation"], nextVisitDate: parsedJson["expectedVisitDate"], contactStatus: parsedJson["contactStatus"], travelingHours: parsedJson["travelingHours"], workingHours: parsedJson["workingHours"], image: parsedJson["image"], pickImage: parsedJson["pickImage"], requiredImage: parsedJson["requiredImage"], taskStatus: parsedJson["taskStatus"], activationAlert: parsedJson["activationAlert"], attachImage: parsedJson["attachImage"], callLastSituation: parsedJson["callLastSituation"], customer: parsedJson["customer"], editServiceReport: parsedJson["editServiceReport"], invoiceCode: parsedJson["invoiceCode"], invoiceNumber: parsedJson["invoiceNumber"], newServiceReport: parsedJson["newServiceReport"], number: parsedJson["number"], operatingHours: parsedJson["operatingHours"], partNumber: parsedJson["partNumber"], quantity: parsedJson["quantity"], reasons: parsedJson["reasons"], reportStatus: parsedJson["reportStatus"], reportType: parsedJson["reportType"], callId: parsedJson["callId"], requiredWord: parsedJson["requiredWord"], serviceType: parsedJson["serviceType"], workPreformed: parsedJson["workPreformed"], alert: parsedJson["alert"], duplicateAlert: parsedJson["duplicateAlert"], duplicateAlertMessage: parsedJson["duplicateAlertMessage"], duplicateRequest: parsedJson["duplicateRequest"], ); } }