addMember method

Future<XRPCResponse<Member>> addMember({
  1. required String did,
  2. required UAddMemberRole role,
  3. Map<String, String>? $unknown,
  4. Map<String, String>? $headers,
  5. PostClient? $client,
})

Add a member to the ozone team. Requires admin role.

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

Implementation

Future<XRPCResponse<Member>> addMember({
  required String did,
  required UAddMemberRole role,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<Member>(
      ns.toolsOzoneTeamAddMember,
      headers: $headers,
      body: {
        'did': did,
        'role': role.toJson(),
        ...?$unknown,
      },
      to: const MemberConverter().fromJson,
      client: $client,
    );