retrieve_virtual_account method
Implementation
Future<AccountResponse> retrieve_virtual_account(Map<String, dynamic> payload,
[String? requestRef]) async {
// Make the API request using the `makeRequest` method
var response = await ApiService().makeRequest(
ServiceTypes.ADMIN_RETRIEVE_SINGLE_VIRTUAL_ACCOUNT,
payload,
requestRef);
// Create a new instance of the `KudaResponse` class
var kudaResponse = AccountResponse.fromJson(response);
// Return the `KudaResponse` instance
return kudaResponse;
}