create method

Future<XRPCResponse<RepoCreateRecordOutput>> create({
  1. required ActorDeclarationAllowIncoming allowIncoming,
  2. ActorDeclarationAllowGroupInvites? allowGroupInvites,
  3. String rkey = 'self',
  4. bool? validate,
  5. String? swapCommit,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<RepoCreateRecordOutput>> create({
  required ActorDeclarationAllowIncoming allowIncoming,
  ActorDeclarationAllowGroupInvites? allowGroupInvites,
  String rkey = 'self',
  bool? validate,
  String? swapCommit,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await comAtprotoRepoCreateRecord(
  repo: ctx.repo,
  collection: ids.chatBskyActorDeclaration,
  rkey: rkey,
  validate: validate,
  record: {
    ...?$unknown,
    'allowIncoming': allowIncoming.toJson(),
    if (allowGroupInvites != null)
      'allowGroupInvites': allowGroupInvites.toJson(),
  },
  swapCommit: swapCommit,
  $ctx: ctx,
  $headers: $headers,
);