appBskyAgeassuranceBegin function

Future<XRPCResponse<State>> appBskyAgeassuranceBegin({
  1. required String email,
  2. required String language,
  3. required String countryCode,
  4. String? regionCode,
  5. required ServiceContext $ctx,
  6. String? $service,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Initiate Age Assurance for an account.

Implementation

Future<XRPCResponse<State>> appBskyAgeassuranceBegin({
  required String email,
  required String language,
  required String countryCode,
  String? regionCode,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.appBskyAgeassuranceBegin,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'email': email,
    'language': language,
    'countryCode': countryCode,
    if (regionCode != null) 'regionCode': regionCode,
  },
  to: const StateConverter().fromJson,
);