getBookingCustomObject function

Future<ApiResponse<BookingCustomObject>> getBookingCustomObject(
  1. ExsitedClient client,
  2. Object bookingId,
  3. Object customObjectId, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/booking/{booking_id}/custom_objects/{custom_object_id}

One custom object with the booking's instances of it.

Implementation

Future<ApiResponse<BookingCustomObject>> getBookingCustomObject(
  ExsitedClient client,
  Object bookingId,
  Object customObjectId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(BookingsUrls.bookingCustomObject,
        pathParams: {
          'booking_id': bookingId,
          'custom_object_id': customObjectId
        },
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: BookingCustomObject.fromMap);