create method
Future<XRPCResponse<CreateRecordOutput> >
create({
- String? rkey,
- required UDeclarationAllowIncoming allowIncoming,
- Map<
String, dynamic> ? $unknown, - Map<
String, String> ? $headers, - PostClient? $client,
Creates declaration record.
Implementation
Future<XRPCResponse<CreateRecordOutput>> create({
String? rkey,
required UDeclarationAllowIncoming allowIncoming,
Map<String, dynamic>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.atproto.repo.createRecord(
repo: _ctx.repo,
collection: ns.chatBskyActorDeclaration,
rkey: rkey ?? 'self',
record: {
r'$type': 'chat.bsky.actor.declaration',
'allowIncoming': allowIncoming.toJson(),
...?$unknown,
},
$headers: $headers,
$client: $client,
);