withdraw_closed method

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

Implementation

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

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

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