getPolicies method

Future<TGetPoliciesResponse> getPolicies({
  1. required TGetPoliciesBody input,
})

List all policies within an organization.

Sign the provided TGetPoliciesBody with the client's stamp function and submit the request (POST /public/v1/query/list_policies).

See also: stampGetPolicies.

Implementation

Future<TGetPoliciesResponse> getPolicies({
  required TGetPoliciesBody input,
}) async {
  return await request<TGetPoliciesBody, TGetPoliciesResponse>(
      "/public/v1/query/list_policies",
      input,
      (json) => TGetPoliciesResponse.fromJson(json));
}