getAccountComponentObjects function

Future<ApiResponse<ComponentObjects>> getAccountComponentObjects(
  1. ExsitedClient client,
  2. Object accountId,
  3. Object componentId, {
  4. Map<String, Object?>? queryParams,
  5. bool? raiseOnError,
  6. String? responseFormat,
})

GET /api/{api_version}/accounts/{account_id}/component/{component_id}

List a component's objects under an account and its child accounts, the cmp_ id; cursor paged.

Implementation

Future<ApiResponse<ComponentObjects>> getAccountComponentObjects(
  ExsitedClient client,
  Object accountId,
  Object componentId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(AccountsUrls.accountComponentObjects,
        pathParams: {'account_id': accountId, 'component_id': componentId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: ComponentObjects.fromMap);