public function transform(RankHistory $rankHistory) { return ['mode' => $rankHistory->mode, 'data' => $rankHistory->data]; }