A stroke of genius is some concept that is really really intelligent. The "a stroke" part basically means "an action".
For someone to be "of genius" is to have lots of intelligence. "Of genius" would describe a person possessing "genius", lots of intelligence.
So I guess you could also say that "a stroke of genius" is an action possessing genius.
Student or Learner