getCustomAttribute function

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

GET /api/{api_version}/custom_attributes/{custom_attribute_id}

Implementation

Future<ApiResponse<CustomAttribute>> getCustomAttribute(
  ExsitedClient client,
  Object customAttributeId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(CustomAttributesUrls.customAttribute,
        pathParams: {'custom_attribute_id': customAttributeId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: CustomAttribute.fromMap);