def METHOD_NAME(cls, actor: "Actor") -> "RpcActor":
    actor_type = ActorType.USER if actor.type == ACTOR_TYPES["user"] else ActorType.TEAM
    model_id = actor.user_id if actor_type == ActorType.USER else actor.team_id
    return cls(
        id=model_id,
        actor_id=actor.id,
        actor_type=actor_type,
    )