apiV2CustomerBookingsMarkBookingAsReadCreateWithHttpInfo method

Future<Response> apiV2CustomerBookingsMarkBookingAsReadCreateWithHttpInfo(
  1. Booking booking
)

Main viewset used by Customer to control own bookings. Provides a full list of fields for a Booking object. With filtering options.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV2CustomerBookingsMarkBookingAsReadCreateWithHttpInfo(Booking booking,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/customer/bookings/mark_booking_as_read/';

  // ignore: prefer_final_locals
  Object? postBody = booking;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}