appBskyAgeassuranceBegin function
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,
);