getBookingCustomObjectsInstance function

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

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

The server's alias of getBookingCustomObject.

Implementation

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