The pronoun whoever is used as direct object in this sentence.
It cannot be an object of a preposition, since there is no preposition in front of it.
It isn't indirect, because, again, there are no prepositions.
And it isn't subject, because the subject is the pronoun I.