PURCHASE_BILL method

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

Implementation

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

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

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