getEvent function

Future<ApiResponse<Event>> getEvent(
  1. ExsitedClient client,
  2. Object eventUuid, {
  3. Map<String, Object?>? queryParams,
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/events/{event_uuid}

Implementation

Future<ApiResponse<Event>> getEvent(
  ExsitedClient client,
  Object eventUuid, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(EventsUrls.event,
        pathParams: {'event_uuid': eventUuid},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: Event.fromMap);