agentWithBalance method
void
agentWithBalance()
Implementation
void agentWithBalance() async {
loading.value = true;
var response = await CallApi().getData('wallet/agents-balance/$usdtAmount');
var dataBody = jsonDecode(response.body);
if (response.statusCode == 200) {
loading.value = false;
bankName.value = dataBody['data']['bankName'];
agentAccountNumber.value = dataBody['data']['accountNumber'];
userId.value = dataBody['data']['userID'];
agentID.value = dataBody['data']['id'];
agentFullname.value = dataBody['data']['fullname'];
Get.to(const SummaryScreen());
}
}