public function transform(Country $country = null) { return ['code' => $country->acronym ?? null, 'name' => $country->name ?? null]; }