getComponentByUuid function

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

GET /api/{api_version}/component/{component_uuid}

Implementation

Future<ApiResponse<Component>> getComponentByUuid(
  ExsitedClient client,
  Object componentUuid, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(CustomComponentsUrls.componentByUuid,
        pathParams: {'component_uuid': componentUuid},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: Component.fromMap);