createComponentObject function
Future<ApiResponse<ComponentObjectRecord> >
createComponentObject(
- ExsitedClient client,
- Object componentUuid,
- Object payload, {
- bool? raiseOnError,
- String? responseFormat,
POST /api/{api_version}/components/{component_uuid}/objects
Create an instance on v4, under custom_component_object; every key is
optional, and parents names the owner.
Implementation
Future<ApiResponse<ComponentObjectRecord>> createComponentObject(
ExsitedClient client,
Object componentUuid,
Object payload, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendPostRequest(CustomComponentsUrls.componentObjects,
pathParams: {'component_uuid': componentUuid},
jsonBody: payload,
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: ComponentObjectRecord.fromMap);