retrieve_virtual_account_balance method

Future<BankAccount> retrieve_virtual_account_balance(
  1. Map<String, dynamic> payload, [
  2. String? requestRef
])

Implementation

Future<BankAccount> retrieve_virtual_account_balance(
    Map<String, dynamic> payload,
    [String? requestRef]) async {
  // Make the API request using the `makeRequest` method
  var response = await ApiService().makeRequest(
      ServiceTypes.RETRIEVE_VIRTUAL_ACCOUNT_BALANCE, payload, requestRef);

  // Create a new instance of the `KudaResponse` class
  var kudaResponse = BankAccount.fromJson(response);

  // Return the `KudaResponse` instance
  return kudaResponse;
}