Last active
January 17, 2023 06:09
-
-
Save jafar260698/3833803bc4cce6fb4968ad80c6f59b43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<String, dynamic> params = Map<String, dynamic>(); | |
params["address"] = widget.address == "" ? addressController.text.toString() : widget.address; | |
params["clientIp"] = "10.252.134.201"; | |
params["files"] = files; | |
params["evidenceFiles"] = evidenceFiles; | |
params["lang"] = lang; | |
params["location"] = locationMap; | |
params["message"] = noteController.text.isEmpty ? "" : noteController.text.toString(); | |
params["ns12Code"] = ns12Real == 0 ? 1401 : ns12Real; | |
params["ns12Name"] = "maxalla yo'q"; | |
params["ns10Code"] = ns10Real == 0 ? _selectedRegion!.code.toString() : ns10Real; | |
params["ns11Code"] = ns11Real == 0 ? _selectedDistrict!.code.toString() : ns11Real; | |
params["offenseType"] = (_selectedItemIndex).toString(); | |
params["organizationName"] = widget.fullname == "" ? companyNameController.text.toString() : widget.fullname; | |
params["personalNumber"] = pnfl; | |
params["cardNumber"] = _selectedCard != null && _selectedCard!.cardNumber != null ? _selectedCard!.cardNumber : ""; | |
params["source"] = "mobileapp"; | |
params["partnerFio"] = partnerNameController.text.toString(); | |
if (isINN) { | |
params["tin"] = "${stirController.text.toString()}"; | |
} else { | |
params["pinfl"] = "${stirController.text.toString()}"; | |
} | |
params["phoneNumber"] = phoneNumber; | |
if (checkBoxValidate!) { | |
params["giveReward"] = 0; | |
} else { | |
params["giveReward"] = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment