updateMember method

Future<XRPCResponse<Member>> updateMember({
  1. required String did,
  2. bool? disabled,
  3. UUpdateMemberRole? role,
  4. Map<String, String>? $unknown,
  5. Map<String, String>? $headers,
  6. PostClient? $client,
})

Update a member in the ozone service. Requires admin role.

https://atprotodart.com/docs/lexicons/tools/ozone/team/updateMember

Implementation

Future<XRPCResponse<Member>> updateMember({
  required String did,
  bool? disabled,
  UUpdateMemberRole? role,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<Member>(
      ns.toolsOzoneTeamUpdateMember,
      headers: $headers,
      body: {
        'did': did,
        if (disabled != null) 'disabled': disabled,
        if (role != null) 'role': role.toJson(),
        ...?$unknown,
      },
      to: const MemberConverter().fromJson,
      client: $client,
    );