updateActorAccess method

Future<XRPCResponse<EmptyData>> updateActorAccess({
  1. required String actor,
  2. required bool allowAccess,
  3. String? ref,
  4. Map<String, String>? $unknown,
  5. Map<String, String>? $headers,
  6. PostClient? $client,
})

Implementation

Future<XRPCResponse<EmptyData>> updateActorAccess({
  required String actor,
  required bool allowAccess,
  String? ref,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<EmptyData>(
      ns.chatBskyModerationUpdateActorAccess,
      headers: $headers,
      body: {
        'actor': actor,
        'allowAccess': allowAccess,
        if (ref != null) 'ref': ref,
        ...?$unknown,
      },
      client: $client,
    );