retrieve_virtual_account method

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

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;
}