appBskyUnspeccedGetAgeAssuranceState function

Future<XRPCResponse<AgeAssuranceState>> appBskyUnspeccedGetAgeAssuranceState({
  1. required ServiceContext $ctx,
  2. Map<String, String>? $headers,
  3. Map<String, String>? $unknown,
})

Returns the current state of the age assurance process for an account. This is used to check if the user has completed age assurance or if further action is required.

Implementation

Future<XRPCResponse<AgeAssuranceState>> appBskyUnspeccedGetAgeAssuranceState({
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyUnspeccedGetAgeAssuranceState,
  headers: $headers,
  parameters: {...?$unknown},
  to: const AgeAssuranceStateConverter().fromJson,
);