removeOrganizationFeature method

Future<TRemoveOrganizationFeatureResponse> removeOrganizationFeature({
  1. required TRemoveOrganizationFeatureBody input,
})

Remove an organization feature. This activity must be approved by the current root quorum.

Sign the provided TRemoveOrganizationFeatureBody with the client's stamp function and submit the request (POST /public/v1/submit/remove_organization_feature).

See also: stampRemoveOrganizationFeature.

Implementation

Future<TRemoveOrganizationFeatureResponse> removeOrganizationFeature({
  required TRemoveOrganizationFeatureBody input,
}) async {
  final body = packActivityBody(
    bodyJson: input.toJson(),
    fallbackOrganizationId: input.organizationId ??
        config.organizationId ??
        (throw Exception(
            "Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
    activityType: 'ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE',
  );
  return await request<Map<String, dynamic>,
          TRemoveOrganizationFeatureResponse>(
      "/public/v1/submit/remove_organization_feature",
      body,
      (json) => TRemoveOrganizationFeatureResponse.fromJson(
          transformActivityResponse(json, 'RemoveOrganizationFeature')));
}