GameMode? getMode(String id) { final data = getAsset('$kPackModesPath/$id.json'); if (data == null) return null; final content = utf8.decode(data); return GameModeMapper.fromJson(content); }