From ac94443c6618ba6a8d635da06e169d260e85e02e Mon Sep 17 00:00:00 2001 From: jedibob5 Date: Tue, 19 Aug 2025 21:32:37 -0500 Subject: [PATCH 1/3] Implement serverside caching and refactor bootstrapping --- controller/BootstrapController.go | 93 +- controller/FaceDataController.go | 8 + controller/NewsController.go | 2 +- controller/TSController.go | 13 +- go.mod | 1 + go.sum | 3 + main.go | 135 +- managers/AdminManager.go | 2 +- managers/BootstrapManager.go | 635 +- managers/BootstrapManager_easyjson.go | 20475 ------------------------ managers/DraftManager.go | 28 + managers/MapHelper.go | 26 +- managers/NewsManager.go | 2 +- 13 files changed, 640 insertions(+), 20783 deletions(-) delete mode 100644 managers/BootstrapManager_easyjson.go diff --git a/controller/BootstrapController.go b/controller/BootstrapController.go index 350d4485..64faafc0 100644 --- a/controller/BootstrapController.go +++ b/controller/BootstrapController.go @@ -21,12 +21,12 @@ func BootstrapTeamData(w http.ResponseWriter, r *http.Request) { w.Write(teamData) } -func FirstBootstrapFootballData(w http.ResponseWriter, r *http.Request) { +func BootstrapLandingData(w http.ResponseWriter, r *http.Request) { enableCors(&w) vars := mux.Vars(r) collegeID := vars["collegeID"] proID := vars["proID"] - data := managers.GetFirstBootstrapData(collegeID, proID) + data := managers.GetLandingBootstrap(collegeID, proID) bootstrapData, err := easyjson.Marshal(data) if err != nil { log.Printf("Failed to encode JSON response: %v", err) @@ -35,12 +35,12 @@ func FirstBootstrapFootballData(w http.ResponseWriter, r *http.Request) { w.Write(bootstrapData) } -func SecondBootstrapFootballData(w http.ResponseWriter, r *http.Request) { +func BootstrapTeamRosterData(w http.ResponseWriter, r *http.Request) { enableCors(&w) vars := mux.Vars(r) collegeID := vars["collegeID"] proID := vars["proID"] - data := managers.GetSecondBootstrapData(collegeID, proID) + data := managers.GetTeamRosterBootstrap(collegeID, proID) bootstrapData, err := easyjson.Marshal(data) if err != nil { log.Printf("Failed to encode JSON response: %v", err) @@ -49,12 +49,93 @@ func SecondBootstrapFootballData(w http.ResponseWriter, r *http.Request) { w.Write(bootstrapData) } -func ThirdBootstrapFootballData(w http.ResponseWriter, r *http.Request) { +func BootstrapRecruitingData(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + vars := mux.Vars(r) + collegeID := vars["collegeID"] + data := managers.GetRecruitingBootstrap(collegeID) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) +} + +func BootstrapFreeAgencyData(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + vars := mux.Vars(r) + proID := vars["proID"] + data := managers.GetFreeAgencyBootstrap(proID) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) +} + +func BootstrapSchedulingData(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + vars := mux.Vars(r) + username := vars["username"] + collegeID := vars["collegeID"] + seasonID := vars["seasonID"] + data := managers.GetCollegePollsBootstrap(username, collegeID, seasonID) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) +} + +func BootstrapDraftData(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + vars := mux.Vars(r) + proID := vars["proID"] + data := managers.GetDraftBootstrap(proID) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) +} + +func BootstrapPortalData(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + vars := mux.Vars(r) + collegeID := vars["collegeID"] + data := managers.GetPortalBootstrap(collegeID) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) +} + +func BootstrapGameplanData(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + vars := mux.Vars(r) + collegeID := vars["collegeID"] + proID := vars["proID"] + data := managers.GetTeamRosterBootstrap(collegeID, proID) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) +} + +func BootstrapNewsData(w http.ResponseWriter, r *http.Request) { enableCors(&w) vars := mux.Vars(r) collegeID := vars["collegeID"] proID := vars["proID"] - data := managers.GetThirdBootstrapData(collegeID, proID) + data := managers.GetNewsBootstrap(collegeID, proID) bootstrapData, err := easyjson.Marshal(data) if err != nil { log.Printf("Failed to encode JSON response: %v", err) diff --git a/controller/FaceDataController.go b/controller/FaceDataController.go index ea37ad6c..c9c9336d 100644 --- a/controller/FaceDataController.go +++ b/controller/FaceDataController.go @@ -1,6 +1,7 @@ package controller import ( + "encoding/json" "fmt" "net/http" @@ -17,3 +18,10 @@ func MigrateFaceData(w http.ResponseWriter, r *http.Request) { fmt.Println("All Faces have been generated") w.WriteHeader(http.StatusOK) } + +func GetAllFaces(w http.ResponseWriter, r *http.Request) { + faceData := managers.GetAllFaces() + + fmt.Println("Face data retrieved") + json.NewEncoder(w).Encode(faceData) +} \ No newline at end of file diff --git a/controller/NewsController.go b/controller/NewsController.go index ba59222a..05e55002 100644 --- a/controller/NewsController.go +++ b/controller/NewsController.go @@ -19,7 +19,7 @@ func GetNewsLogs(w http.ResponseWriter, r *http.Request) { } func GetAllNewsLogsForASeason(w http.ResponseWriter, r *http.Request) { - newsLogs := managers.GetAllNewsLogs() + newsLogs := managers.GetAllCFBNewsLogs() json.NewEncoder(w).Encode(newsLogs) } diff --git a/controller/TSController.go b/controller/TSController.go index f92e0bec..a69adb18 100644 --- a/controller/TSController.go +++ b/controller/TSController.go @@ -43,9 +43,16 @@ func FireItUp(w http.ResponseWriter, r *http.Request) { func CreateTSModelsFile(w http.ResponseWriter, r *http.Request) { converter := typescriptify.New(). - Add(managers.BootstrapData{}). - Add(managers.BootstrapDataTwo{}). - Add(managers.BootstrapDataThree{}). + Add(managers.BootstrapDataTeams{}). + Add(managers.BootstrapDataLanding{}). + Add(managers.BootstrapDataTeamRoster{}). + Add(managers.BootstrapDataRecruiting{}). + Add(managers.BootstrapDataFreeAgency{}). + Add(managers.BootstrapDataScheduling{}). + Add(managers.BootstrapDataDraft{}). + Add(managers.BootstrapDataPortal{}). + Add(managers.BootstrapDataGameplan{}). + Add(managers.BootstrapDataNews{}). Add(managers.CollegeTeamProfileData{}). Add(structs.SearchStatsResponse{}). Add(structs.FaceDataResponse{}). diff --git a/go.mod b/go.mod index bf5de0af..fe06e7dc 100644 --- a/go.mod +++ b/go.mod @@ -10,6 +10,7 @@ require ( github.com/mailru/easyjson v0.9.0 github.com/nelkinda/health-go v0.0.1 github.com/robfig/cron/v3 v3.0.1 + github.com/victorspringer/http-cache v0.0.0-20240523143319-7d9f48f8ab91 golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 golang.org/x/text v0.14.0 gorm.io/driver/mysql v1.5.2 diff --git a/go.sum b/go.sum index c64b96e2..2e2a4cac 100644 --- a/go.sum +++ b/go.sum @@ -127,11 +127,14 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tkrajina/go-reflector v0.5.5 h1:gwoQFNye30Kk7NrExj8zm3zFtrGPqOkzFMLuQZg1DtQ= github.com/tkrajina/go-reflector v0.5.5/go.mod h1:ECbqLgccecY5kPmPmXg1MrHW585yMcDkVl6IvJe64T4= github.com/tkrajina/typescriptify-golang-structs v0.2.0 h1:ZedWk82egydDspGTryAatbX0/1NZDQbdiZLoCbOk4f8= github.com/tkrajina/typescriptify-golang-structs v0.2.0/go.mod h1:sjU00nti/PMEOZb07KljFlR+lJ+RotsC0GBQMv9EKls= +github.com/victorspringer/http-cache v0.0.0-20240523143319-7d9f48f8ab91 h1:b5+IzGwYrH3TnHjjUdMdM/4BCefs1pn4JWO4n/zYmMk= +github.com/victorspringer/http-cache v0.0.0-20240523143319-7d9f48f8ab91/go.mod h1:D1AD6nlXv7HkIfTVd8ZWK1KQEiXYNy/LbLkx8H9tIQw= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= go.mongodb.org/mongo-driver v1.3.4/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= diff --git a/main.go b/main.go index 63e811b4..cf65092a 100644 --- a/main.go +++ b/main.go @@ -22,6 +22,8 @@ import ( "github.com/nelkinda/health-go" "github.com/nelkinda/health-go/checks/sendgrid" "github.com/robfig/cron/v3" + cache "github.com/victorspringer/http-cache" + "github.com/victorspringer/http-cache/adapter/memory" ) func InitialMigration() { @@ -60,6 +62,26 @@ func handleRequests() http.Handler { apiRouter := myRouter.PathPrefix("/api").Subrouter() apiRouter.Use(middleware.GzipMiddleware) + memcached, err := memory.NewAdapter( + memory.AdapterWithAlgorithm(memory.LRU), + memory.AdapterWithStorageCapacity(1000000000), // try 1GB max capacity at first + ) + if err != nil { + log.Fatal(err) + } + + cacheClient, err := cache.NewClient( + cache.ClientWithAdapter(memcached), + cache.ClientWithTTL(10*time.Minute), + cache.ClientWithRefreshKey("opn"), + ) + if err != nil { + log.Fatal(err) + } + cachedApiRouter := myRouter.PathPrefix("/api").Subrouter() + cachedApiRouter.Use(middleware.GzipMiddleware) + cachedApiRouter.Use(cacheClient.Middleware) + // Health Controls HealthCheck := health.New( health.Health{ @@ -101,10 +123,16 @@ func handleRequests() http.Handler { apiRouter.HandleFunc("/admin/trades/cleanup", controller.CleanUpRejectedTrades).Methods("GET") // Bootstrap - apiRouter.HandleFunc("/bootstrap/teams/", controller.BootstrapTeamData).Methods("GET") - apiRouter.HandleFunc("/bootstrap/one/{collegeID}/{proID}", controller.FirstBootstrapFootballData).Methods("GET") - apiRouter.HandleFunc("/bootstrap/two/{collegeID}/{proID}", controller.SecondBootstrapFootballData).Methods("GET") - apiRouter.HandleFunc("/bootstrap/three/{collegeID}/{proID}", controller.ThirdBootstrapFootballData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/teams", controller.BootstrapTeamData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/landing/{collegeID}/{proID}", controller.BootstrapLandingData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/roster/{collegeID}/{proID}", controller.BootstrapTeamRosterData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/recruiting/{collegeID}", controller.BootstrapRecruitingData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/freeagency/{proID}", controller.BootstrapFreeAgencyData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/scheduling/{username}/{collegeID}/{seasonID}", controller.BootstrapSchedulingData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/draft/{proID}", controller.BootstrapDraftData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/portal/{collegeID}", controller.BootstrapPortalData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/gameplan/{collegeID}/{proID}", controller.BootstrapGameplanData).Methods("GET") + cachedApiRouter.HandleFunc("/bootstrap/news/{collegeID}/{proID}", controller.BootstrapNewsData).Methods("GET") // Capsheet Controls apiRouter.HandleFunc("/nfl/capsheet/generate", controller.GenerateCapsheets).Methods("GET") @@ -124,6 +152,7 @@ func handleRequests() http.Handler { // Face Controls // apiRouter.HandleFunc("/faces/migrate", controller.MigrateFaceData).Methods("GET") // apiRouter.HandleFunc("/spending/count/fix", controller.FixSpendingCount).Methods("GET") + cachedApiRouter.HandleFunc("/faces", controller.GetAllFaces) // Free Agency Controls // apiRouter.HandleFunc("/nfl/extensions/sync", controller.SyncExtensions).Methods("GET") @@ -168,7 +197,7 @@ func handleRequests() http.Handler { // apiRouter.HandleFunc("/admin/generate/walkons", controller.GenerateWalkOns).Methods("GET") // History Controls - apiRouter.HandleFunc("/history/college", controller.GetCollegeHistoryProfile).Methods("GET") + cachedApiRouter.HandleFunc("/history/college", controller.GetCollegeHistoryProfile).Methods("GET") // Import Controls // apiRouter.HandleFunc("/admin/import/fcs/gameplans", controller.GenerateNewGameplans).Methods("GET") @@ -203,32 +232,32 @@ func handleRequests() http.Handler { // apiRouter.HandleFunc("/run/predraft/events", controller.RunPreDraftEvents).Methods("GET") // News Controls - apiRouter.HandleFunc("/cfb/news/all/", controller.GetAllNewsLogsForASeason).Methods("GET") - apiRouter.HandleFunc("/nfl/news/all/", controller.GetAllNFLNewsBySeason).Methods("GET") - apiRouter.HandleFunc("/news/feed/{league}/{teamID}/", controller.GetNewsFeed).Methods("GET") + cachedApiRouter.HandleFunc("/cfb/news/all/", controller.GetAllNewsLogsForASeason).Methods("GET") + cachedApiRouter.HandleFunc("/nfl/news/all/", controller.GetAllNFLNewsBySeason).Methods("GET") + cachedApiRouter.HandleFunc("/news/feed/{league}/{teamID}/", controller.GetNewsFeed).Methods("GET") // Notification Controls - apiRouter.HandleFunc("/fba/inbox/get/{cfbID}/{nflID}/", controller.GetFBAInbox).Methods("GET") - apiRouter.HandleFunc("/notification/toggle/{notiID}", controller.ToggleNotificationAsRead).Methods("GET") - apiRouter.HandleFunc("/notification/delete/{notiID}", controller.DeleteNotification).Methods("GET") + cachedApiRouter.HandleFunc("/fba/inbox/get/{cfbID}/{nflID}/", controller.GetFBAInbox).Methods("GET") + cachedApiRouter.HandleFunc("/notification/toggle/{notiID}", controller.ToggleNotificationAsRead).Methods("GET") + cachedApiRouter.HandleFunc("/notification/delete/{notiID}", controller.DeleteNotification).Methods("GET") // Player Controls - apiRouter.HandleFunc("/players/all/", controller.AllPlayers).Methods("GET") + cachedApiRouter.HandleFunc("/players/all/", controller.AllPlayers).Methods("GET") apiRouter.HandleFunc("/collegeplayers/cut/player/{PlayerID}/", controller.CutCFBPlayerFromRoster).Methods("GET") - apiRouter.HandleFunc("/collegeplayers/heisman/", controller.GetHeismanList).Methods("GET") - apiRouter.HandleFunc("/collegeplayers/team/{teamID}/", controller.AllCollegePlayersByTeamID).Methods("GET") - apiRouter.HandleFunc("/collegeplayers/team/nors/{teamID}/", controller.AllCollegePlayersByTeamIDWithoutRedshirts).Methods("GET") - apiRouter.HandleFunc("/collegeplayers/team/export/{teamID}/", controller.ExportRosterToCSV).Methods("GET") + cachedApiRouter.HandleFunc("/collegeplayers/heisman/", controller.GetHeismanList).Methods("GET") + cachedApiRouter.HandleFunc("/collegeplayers/team/{teamID}/", controller.AllCollegePlayersByTeamID).Methods("GET") + cachedApiRouter.HandleFunc("/collegeplayers/team/nors/{teamID}/", controller.AllCollegePlayersByTeamIDWithoutRedshirts).Methods("GET") + cachedApiRouter.HandleFunc("/collegeplayers/team/export/{teamID}/", controller.ExportRosterToCSV).Methods("GET") apiRouter.HandleFunc("/collegeplayers/assign/redshirt/{PlayerID}", controller.ToggleRedshirtStatusForPlayer).Methods("GET", "OPTIONS") - apiRouter.HandleFunc("/nflplayers/team/{teamID}/", controller.AllNFLPlayersByTeamIDForDC).Methods("GET") - apiRouter.HandleFunc("/nflplayers/freeagency/available/{teamID}", controller.FreeAgencyAvailablePlayers).Methods("GET") - apiRouter.HandleFunc("/nflplayers/team/export/{teamID}/", controller.ExportNFLRosterToCSV).Methods("GET") - apiRouter.HandleFunc("/nflplayers/teams/export/all/", controller.ExportAllNFLRostersToCSV).Methods("GET") + cachedApiRouter.HandleFunc("/nflplayers/team/{teamID}/", controller.AllNFLPlayersByTeamIDForDC).Methods("GET") + cachedApiRouter.HandleFunc("/nflplayers/freeagency/available/{teamID}", controller.FreeAgencyAvailablePlayers).Methods("GET") + cachedApiRouter.HandleFunc("/nflplayers/team/export/{teamID}/", controller.ExportNFLRosterToCSV).Methods("GET") + cachedApiRouter.HandleFunc("/nflplayers/teams/export/all/", controller.ExportAllNFLRostersToCSV).Methods("GET") apiRouter.HandleFunc("/nflplayers/tag/player/", controller.TagPlayer).Methods("POST") apiRouter.HandleFunc("/nflplayers/cut/player/{PlayerID}/", controller.CutNFLPlayerFromRoster).Methods("GET") apiRouter.HandleFunc("/nflplayers/place/player/squad/{PlayerID}/", controller.PlaceNFLPlayerOnPracticeSquad).Methods("GET") apiRouter.HandleFunc("/nflplayers/injury/reserve/player/{PlayerID}/", controller.PlaceNFLPlayerOnInjuryReserve).Methods("GET") - apiRouter.HandleFunc("/collegeplayers/teams/export/", controller.ExportAllCFBRostersToCSV).Methods("GET") // DO NOT USE + cachedApiRouter.HandleFunc("/collegeplayers/teams/export/", controller.ExportAllCFBRostersToCSV).Methods("GET") // DO NOT USE // Poll Controls apiRouter.HandleFunc("/college/poll/create/", controller.CreatePollSubmission).Methods("POST") @@ -280,49 +309,49 @@ func handleRequests() http.Handler { apiRouter.HandleFunc("/nfl/requests/remove/{teamID}", controller.RemoveNFLUserFromNFLTeam).Methods("POST") // Standings Controls - apiRouter.HandleFunc("/standings/cfb/season/{seasonID}/", controller.GetAllCollegeStandings).Methods("GET") - apiRouter.HandleFunc("/standings/cfb/{conferenceID}/{seasonID}/", controller.GetCollegeStandingsByConferenceIDAndSeasonID).Methods("GET") - apiRouter.HandleFunc("/standings/nfl/season/{seasonID}/", controller.GetAllNFLStandings).Methods("GET") - apiRouter.HandleFunc("/standings/nfl/{divisionID}/{seasonID}/", controller.GetNFLStandingsByDivisionIDAndSeasonID).Methods("GET") - apiRouter.HandleFunc("/standings/cfb/history/team/{teamID}/", controller.GetHistoricalRecordsByTeamID).Methods("GET") + cachedApiRouter.HandleFunc("/standings/cfb/season/{seasonID}/", controller.GetAllCollegeStandings).Methods("GET") + cachedApiRouter.HandleFunc("/standings/cfb/{conferenceID}/{seasonID}/", controller.GetCollegeStandingsByConferenceIDAndSeasonID).Methods("GET") + cachedApiRouter.HandleFunc("/standings/nfl/season/{seasonID}/", controller.GetAllNFLStandings).Methods("GET") + cachedApiRouter.HandleFunc("/standings/nfl/{divisionID}/{seasonID}/", controller.GetNFLStandingsByDivisionIDAndSeasonID).Methods("GET") + cachedApiRouter.HandleFunc("/standings/cfb/history/team/{teamID}/", controller.GetHistoricalRecordsByTeamID).Methods("GET") // Stats Controls - apiRouter.HandleFunc("/stats/cfb/player/{playerID}/season/{seasonID}/", controller.GetCFBSeasonStatsRecord).Methods("GET") - apiRouter.HandleFunc("/statistics/export/cfb/", controller.ExportCFBStatisticsFromSim).Methods("POST") + cachedApiRouter.HandleFunc("/stats/cfb/player/{playerID}/season/{seasonID}/", controller.GetCFBSeasonStatsRecord).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/export/cfb/", controller.ExportCFBStatisticsFromSim).Methods("POST") // apiRouter.HandleFunc("/statistics/export/nfl/", controller.ExportNFLStatisticsFromSim).Methods("POST") - apiRouter.HandleFunc("/statistics/export/players/", controller.ExportPlayerStatsToCSV).Methods("GET") - apiRouter.HandleFunc("/statistics/export/cfb/{seasonID}/{weekID}/{viewType}/{gameType}", controller.ExportStatsPageContentForSeason).Methods("GET") - apiRouter.HandleFunc("/statistics/export/nfl/{seasonID}/{weekID}/{viewType}/{gameType}", controller.ExportNFLStatsPageContent).Methods("GET") - apiRouter.HandleFunc("/statistics/cfb/export/play/by/play/{gameID}", controller.ExportPlayByPlayToCSV).Methods("GET") - apiRouter.HandleFunc("/statistics/nfl/export/play/by/play/{gameID}", controller.ExportNFLPlayByPlayToCSV).Methods("GET") - apiRouter.HandleFunc("/statistics/injured/players/", controller.GetInjuryReport).Methods("GET") - apiRouter.HandleFunc("/statistics/interface/cfb/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetStatsPageContentForSeason).Methods("GET") - apiRouter.HandleFunc("/statistics/interface/nfl/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetNFLStatsPageContent).Methods("GET") - apiRouter.HandleFunc("/statistics/interface/v2/cfb/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetCFBStatsPageContent).Methods("GET") - apiRouter.HandleFunc("/statistics/interface/v2/nfl/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetProStatsPageContent).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/export/players/", controller.ExportPlayerStatsToCSV).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/export/cfb/{seasonID}/{weekID}/{viewType}/{gameType}", controller.ExportStatsPageContentForSeason).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/export/nfl/{seasonID}/{weekID}/{viewType}/{gameType}", controller.ExportNFLStatsPageContent).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/cfb/export/play/by/play/{gameID}", controller.ExportPlayByPlayToCSV).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/nfl/export/play/by/play/{gameID}", controller.ExportNFLPlayByPlayToCSV).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/injured/players/", controller.GetInjuryReport).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/interface/cfb/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetStatsPageContentForSeason).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/interface/nfl/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetNFLStatsPageContent).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/interface/v2/cfb/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetCFBStatsPageContent).Methods("GET") + cachedApiRouter.HandleFunc("/statistics/interface/v2/nfl/{seasonID}/{weekID}/{viewType}/{gameType}", controller.GetProStatsPageContent).Methods("GET") // apiRouter.HandleFunc("/statistics/reset/cfb/season/", controller.ResetCFBSeasonalStats).Methods("GET") // apiRouter.HandleFunc("/statistics/reset/nfl/season/", controller.ResetNFLSeasonalStats).Methods("GET") // Team Controls - apiRouter.HandleFunc("/teams/college/all/", controller.GetAllCollegeTeams).Methods("GET") - apiRouter.HandleFunc("/teams/college/data/all/", controller.GetAllCollegeTeamsForRosterPage).Methods("GET") - apiRouter.HandleFunc("/teams/nfl/all/", controller.GetAllNFLTeams).Methods("GET") - apiRouter.HandleFunc("/teams/cfb/dashboard/{teamID}/", controller.GetCFBDashboardByTeamID).Methods("GET") - apiRouter.HandleFunc("/teams/nfl/dashboard/{teamID}/", controller.GetNFLDashboardByTeamID).Methods("GET") - apiRouter.HandleFunc("/teams/nfl/roster/{teamID}/", controller.GetNFLRecordsForRosterPage).Methods("GET") - apiRouter.HandleFunc("/teams/college/active/", controller.GetAllActiveCollegeTeams).Methods("GET") - apiRouter.HandleFunc("/teams/college/available/", controller.GetAllAvailableCollegeTeams).Methods("GET") - apiRouter.HandleFunc("/teams/college/team/{teamID}/", controller.GetTeamByTeamID).Methods("GET") - apiRouter.HandleFunc("/teams/college/assign/grades/", controller.AssignCFBTeamGrades).Methods("GET") - apiRouter.HandleFunc("/teams/nfl/team/{teamID}/", controller.GetNFLTeamByTeamID).Methods("GET") - apiRouter.HandleFunc("/teams/college/conference/{conferenceID}/", controller.GetTeamsByConferenceID).Methods("GET") - apiRouter.HandleFunc("/teams/college/division/{divisionID}/", controller.GetTeamsByDivisionID).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/all/", controller.GetAllCollegeTeams).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/data/all/", controller.GetAllCollegeTeamsForRosterPage).Methods("GET") + cachedApiRouter.HandleFunc("/teams/nfl/all/", controller.GetAllNFLTeams).Methods("GET") + cachedApiRouter.HandleFunc("/teams/cfb/dashboard/{teamID}/", controller.GetCFBDashboardByTeamID).Methods("GET") + cachedApiRouter.HandleFunc("/teams/nfl/dashboard/{teamID}/", controller.GetNFLDashboardByTeamID).Methods("GET") + cachedApiRouter.HandleFunc("/teams/nfl/roster/{teamID}/", controller.GetNFLRecordsForRosterPage).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/active/", controller.GetAllActiveCollegeTeams).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/available/", controller.GetAllAvailableCollegeTeams).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/team/{teamID}/", controller.GetTeamByTeamID).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/assign/grades/", controller.AssignCFBTeamGrades).Methods("GET") + cachedApiRouter.HandleFunc("/teams/nfl/team/{teamID}/", controller.GetNFLTeamByTeamID).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/conference/{conferenceID}/", controller.GetTeamsByConferenceID).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/division/{divisionID}/", controller.GetTeamsByDivisionID).Methods("GET") apiRouter.HandleFunc("/teams/college/update/jersey/", controller.UpdateCFBJersey).Methods("POST") apiRouter.HandleFunc("/teams/nfl/update/jersey/", controller.UpdateNFLJersey).Methods("POST") // ENGINE CONTROLS - apiRouter.HandleFunc("/teams/college/sim/{gameID}/", controller.GetHomeAndAwayTeamData).Methods("GET") - apiRouter.HandleFunc("/teams/nfl/sim/{gameID}/", controller.GetNFLHomeAndAwayTeamData).Methods("GET") + cachedApiRouter.HandleFunc("/teams/college/sim/{gameID}/", controller.GetHomeAndAwayTeamData).Methods("GET") + cachedApiRouter.HandleFunc("/teams/nfl/sim/{gameID}/", controller.GetNFLHomeAndAwayTeamData).Methods("GET") // TEST Controls apiRouter.HandleFunc("/simfba/team/test/{teamID}/{off}/{def}", controller.UpdateIndividualGameplanTEST).Methods("GET") diff --git a/managers/AdminManager.go b/managers/AdminManager.go index c785762e..735cb890 100644 --- a/managers/AdminManager.go +++ b/managers/AdminManager.go @@ -621,7 +621,7 @@ func GetNewsLogs(weekID string, seasonID string) []structs.NewsLog { return logs } -func GetAllNewsLogs() []structs.NewsLog { +func GetAllCFBNewsLogs() []structs.NewsLog { db := dbprovider.GetInstance().GetDB() var logs []structs.NewsLog diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index ca4c999f..32f2813f 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -13,62 +13,99 @@ import ( "github.com/CalebRose/SimFBA/util" ) -type BootstrapData struct { - CollegeTeam structs.CollegeTeam - AllCollegeTeams []structs.CollegeTeam - CollegeRosterMap map[uint][]structs.CollegePlayer - HistoricCollegePlayers []structs.HistoricCollegePlayer - TopCFBPassers []structs.CollegePlayer - TopCFBRushers []structs.CollegePlayer - TopCFBReceivers []structs.CollegePlayer - PortalPlayers []structs.CollegePlayer - CollegeInjuryReport []structs.CollegePlayer - CollegeNotifications []structs.Notification - CollegeGameplan structs.CollegeGameplan - CollegeGameplanMap map[uint]structs.CollegeGameplan - CollegeDepthChart structs.CollegeTeamDepthChart - ProTeam structs.NFLTeam - AllProTeams []structs.NFLTeam - ProNotifications []structs.Notification - NFLGameplan structs.NFLGameplan - NFLGameplanMap map[uint]structs.NFLGameplan - NFLDepthChart structs.NFLDepthChart +/* + * IF ANY OF THE BELOW MODELS ARE MODIFIED, THE EASYJSON HELPER WILL NEED TO BE REGENERATED. + * To do this, delete BootstrapManager_easyjson.go, then run the following command in a terminal in the root directory: + * easyjson -all .\managers\BootstrapManager.go + */ +type BootstrapDataTeams struct { + AllCollegeTeams []structs.CollegeTeam + AllProTeams []structs.NFLTeam } -type BootstrapDataTwo struct { - CollegeNews []structs.NewsLog - AllCollegeGames []structs.CollegeGame - TeamProfileMap map[string]*structs.RecruitingTeamProfile +type BootstrapDataLanding struct { + CollegeTeam structs.CollegeTeam + CollegeRosterMap map[uint][]structs.CollegePlayer CollegeStandings []structs.CollegeStandings + AllCollegeGames []structs.CollegeGame + OfficialPolls []structs.CollegePollOfficial + TopCFBPassers []structs.CollegePlayer + TopCFBRushers []structs.CollegePlayer + TopCFBReceivers []structs.CollegePlayer + PortalPlayers []structs.CollegePlayer + CollegeInjuryReport []structs.CollegePlayer + CollegeNotifications []structs.Notification + ProTeam structs.NFLTeam + ProNotifications []structs.Notification ProStandings []structs.NFLStandings AllProGames []structs.NFLGame - CapsheetMap map[uint]structs.NFLCapsheet - ProRosterMap map[uint][]structs.NFLPlayer - RetiredPlayers []structs.NFLRetiredPlayer - PracticeSquadPlayers []structs.NFLPlayer + PollSubmission structs.CollegePollSubmission TopNFLPassers []structs.NFLPlayer TopNFLRushers []structs.NFLPlayer TopNFLReceivers []structs.NFLPlayer + ProRosterMap map[uint][]structs.NFLPlayer ProInjuryReport []structs.NFLPlayer + PracticeSquadPlayers []structs.NFLPlayer + CapsheetMap map[uint]structs.NFLCapsheet + RetiredPlayers []structs.NFLRetiredPlayer +} + +type BootstrapDataTeamRoster struct { + ContractMap map[uint]structs.NFLContract + ExtensionMap map[uint]structs.NFLExtensionOffer + CollegePromises []structs.CollegePromise +} + +type BootstrapDataRecruiting struct { + Recruits []structs.Croot + RecruitProfiles []structs.RecruitPlayerProfile + TeamProfileMap map[string]*structs.RecruitingTeamProfile +} + +type BootstrapDataFreeAgency struct { + FreeAgents []structs.NFLPlayer + WaiverPlayers []structs.NFLPlayer + FreeAgentOffers []structs.FreeAgencyOffer + WaiverOffers []structs.NFLWaiverOffer +} + +type BootstrapDataScheduling struct { + OfficialPolls []structs.CollegePollOfficial + PollSubmission structs.CollegePollSubmission } -type BootstrapDataThree struct { - Recruits []structs.Croot - RecruitProfiles []structs.RecruitPlayerProfile +type BootstrapDataDraft struct { + NFLDraftees []models.NFLDraftee + NFLWarRoomMap map[uint]models.NFLWarRoom // BY TEAM + DraftScoutingProfileMap map[uint]models.ScoutingProfile // BY TEAM +} + +type BootstrapDataPortal struct { + TeamProfileMap map[string]*structs.RecruitingTeamProfile // Get Just in Case because this page also uses this data + TransferPortalProfiles []structs.TransferPortalProfile + CollegePromises []structs.CollegePromise +} + +type BootstrapDataGameplan struct { + CollegeGameplanMap map[uint]structs.CollegeGameplan + CollegeDepthChart structs.CollegeTeamDepthChart + ProGameplanMap map[uint]structs.NFLGameplan + ProDepthChart structs.NFLDepthChart CollegeDepthChartMap map[uint]structs.CollegeTeamDepthChart - FreeAgentOffers []structs.FreeAgencyOffer - WaiverWireOffers []structs.NFLWaiverOffer - FreeAgents []structs.NFLPlayer - WaiverPlayers []structs.NFLPlayer - NFLDraftees []models.NFLDraftee - ProNews []structs.NewsLog - NFLDepthChartMap map[uint]structs.NFLDepthChart - ContractMap map[uint]structs.NFLContract - ExtensionMap map[uint]structs.NFLExtensionOffer - FaceData map[uint]structs.FaceDataResponse + ProDepthChartMap map[uint]structs.NFLDepthChart } -func GetTeamsBootstrap() BootstrapData { +type BootstrapDataNews struct { + CollegeNews []structs.NewsLog + ProNews []structs.NewsLog +} + +/* + * IF ANY OF THE ABOVE MODELS ARE MODIFIED, THE EASYJSON HELPER WILL NEED TO BE REGENERATED. + * See the comment at the top of the file for instructions. + */ + +func GetTeamsBootstrap() BootstrapDataTeams { var wg sync.WaitGroup var ( @@ -87,50 +124,56 @@ func GetTeamsBootstrap() BootstrapData { }() wg.Wait() - return BootstrapData{ + return BootstrapDataTeams{ AllCollegeTeams: allCollegeTeams, AllProTeams: allProTeams, } } -func GetFirstBootstrapData(collegeID, proID string) BootstrapData { +func GetLandingBootstrap(collegeID, proID string) BootstrapDataLanding { var wg sync.WaitGroup var mu sync.Mutex // College Data var ( - collegeTeam structs.CollegeTeam - collegePlayers []structs.CollegePlayer - collegePlayerMap map[uint][]structs.CollegePlayer - historicCollegePlayers []structs.HistoricCollegePlayer - portalPlayers []structs.CollegePlayer - injuredCollegePlayers []structs.CollegePlayer - collegeNotifications []structs.Notification - collegeGameplanMap map[uint]structs.CollegeGameplan - collegeDepthChart structs.CollegeTeamDepthChart - topPassers []structs.CollegePlayer - topRushers []structs.CollegePlayer - topReceivers []structs.CollegePlayer + collegeTeam structs.CollegeTeam + collegePlayers []structs.CollegePlayer + collegePlayerMap map[uint][]structs.CollegePlayer + portalPlayers []structs.CollegePlayer + injuredCollegePlayers []structs.CollegePlayer + collegeNotifications []structs.Notification + topCfbPassers []structs.CollegePlayer + topCfbRushers []structs.CollegePlayer + topCfbReceivers []structs.CollegePlayer + collegeStandings []structs.CollegeStandings + collegeGames []structs.CollegeGame ) // Professional Data var ( - proTeam structs.NFLTeam - proNotifications []structs.Notification - proGameplan structs.NFLGameplan - proGameplanMap map[uint]structs.NFLGameplan - proDepthChart structs.NFLDepthChart + proTeam structs.NFLTeam + proNotifications []structs.Notification + topNflPassers []structs.NFLPlayer + topNflRushers []structs.NFLPlayer + topNflReceivers []structs.NFLPlayer + proRosterMap map[uint][]structs.NFLPlayer + practiceSquadPlayers []structs.NFLPlayer + injuredProPlayers []structs.NFLPlayer + capsheetMap map[uint]structs.NFLCapsheet + retiredPlayers []structs.NFLRetiredPlayer + proStandings []structs.NFLStandings + proGames []structs.NFLGame ) ts := GetTimestamp() - _, gtStr := ts.GetCFBCurrentGameType() - seasonID := strconv.Itoa(int(ts.CollegeSeasonID)) - // Start concurrent queries if len(collegeID) > 0 && collegeID != "0" { - wg.Add(6) + _, gtStr := ts.GetCFBCurrentGameType() + seasonID := strconv.Itoa(int(ts.CollegeSeasonID)) + cfbTeamId := util.ConvertStringToInt(collegeID) + wg.Add(5) go func() { defer wg.Done() mu.Lock() @@ -147,9 +190,9 @@ func GetFirstBootstrapData(collegeID, proID string) BootstrapData { mu.Lock() collegePlayerMap = MakeCollegePlayerMapByTeamID(collegePlayers, true) fullCollegePlayerMap := MakeCollegePlayerMap(collegePlayers) - topPassers = getCFBOrderedListByStatType("PASSING", collegeTeam.ID, cfbStats, fullCollegePlayerMap) - topRushers = getCFBOrderedListByStatType("RUSHING", collegeTeam.ID, cfbStats, fullCollegePlayerMap) - topReceivers = getCFBOrderedListByStatType("RECEIVING", collegeTeam.ID, cfbStats, fullCollegePlayerMap) + topCfbPassers = getCFBOrderedListByStatType("PASSING", uint(cfbTeamId), cfbStats, fullCollegePlayerMap) + topCfbRushers = getCFBOrderedListByStatType("RUSHING", uint(cfbTeamId), cfbStats, fullCollegePlayerMap) + topCfbReceivers = getCFBOrderedListByStatType("RECEIVING", uint(cfbTeamId), cfbStats, fullCollegePlayerMap) injuredCollegePlayers = MakeCollegeInjuryList(collegePlayers) portalPlayers = MakeCollegePortalList(collegePlayers) mu.Unlock() @@ -160,20 +203,22 @@ func GetFirstBootstrapData(collegeID, proID string) BootstrapData { }() go func() { defer wg.Done() - gameplans := GetAllCollegeGameplans() - collegeGameplanMap = MakeCollegeGameplanMap(gameplans) - }() - go func() { - defer wg.Done() - collegeDepthChart = GetDepthchartByTeamID(collegeID) + log.Println("Fetching College Games for seasonID:", seasonID) + collegeGames = GetCollegeGamesBySeasonID(seasonID) + log.Println("Fetched College Games, count:", len(collegeGames)) }() go func() { defer wg.Done() - historicCollegePlayers = GetAllHistoricCollegePlayers() + log.Println("Fetching College Standings for seasonID:", seasonID) + collegeStandings = GetAllCollegeStandingsBySeasonID(seasonID) + log.Println("Fetched College Standings, count:", len(collegeStandings)) }() } if len(proID) > 0 && proID != "0" { - wg.Add(4) + _, gtStr := ts.GetNFLCurrentGameType() + seasonID := strconv.Itoa(int(ts.NFLSeasonID)) + nflTeamID := util.ConvertStringToInt(proID) + wg.Add(7) go func() { defer wg.Done() mu.Lock() @@ -189,278 +234,384 @@ func GetFirstBootstrapData(collegeID, proID string) BootstrapData { }() go func() { defer wg.Done() - proGameplans := GetAllNFLGameplans() - proGameplanMap = MakeNFLGameplanMap(proGameplans) + log.Println("Fetching NFL Players for roster mapping...") + proPlayers := GetAllNFLPlayers() + nflStats := GetNFLPlayerSeasonStatsBySeason(seasonID, gtStr) + + mu.Lock() + nflPlayerMap := MakeNFLPlayerMap(proPlayers) + proRosterMap = MakeNFLPlayerMapByTeamID(proPlayers, true) + injuredProPlayers = MakeProInjuryList(proPlayers) + practiceSquadPlayers = MakePracticeSquadList(proPlayers) + topNflPassers = getNFLOrderedListByStatType("PASSING", uint(nflTeamID), nflStats, nflPlayerMap) + topNflRushers = getNFLOrderedListByStatType("RUSHING", uint(nflTeamID), nflStats, nflPlayerMap) + topNflReceivers = getNFLOrderedListByStatType("RECEIVING", uint(nflTeamID), nflStats, nflPlayerMap) + mu.Unlock() + log.Println("Fetched NFL Players, roster count:", len(proRosterMap), "injured count:", len(injuredProPlayers)) }() go func() { defer wg.Done() - proDepthChart = GetNFLDepthchartByTeamID(proID) + log.Println("Fetching Capsheet Map...") + capsheetMap = getCapsheetMap() + log.Println("Fetched Capsheet Map, count:", len(capsheetMap)) + }() + go func() { + defer wg.Done() + log.Println("Fetching Retired Players...") + retiredPlayers = GetAllRetiredPlayers() + log.Println("Fetched Retired Players, count:", len(retiredPlayers)) + }() + go func() { + defer wg.Done() + log.Println("Fetching NFL Standings for seasonID:", seasonID) + proStandings = GetAllNFLStandingsBySeasonID(seasonID) + log.Println("Fetched NFL Standings, count:", len(proStandings)) + }() + go func() { + defer wg.Done() + log.Println("Fetching NFL Games for seasonID:", seasonID) + proGames = GetNFLGamesBySeasonID(seasonID) + log.Println("Fetched NFL Games, count:", len(proGames)) }() } wg.Wait() - return BootstrapData{ - CollegeTeam: collegeTeam, - CollegeRosterMap: collegePlayerMap, - CollegeInjuryReport: injuredCollegePlayers, - CollegeNotifications: collegeNotifications, - CollegeGameplanMap: collegeGameplanMap, - CollegeDepthChart: collegeDepthChart, - PortalPlayers: portalPlayers, - ProTeam: proTeam, - ProNotifications: proNotifications, - NFLGameplan: proGameplan, - NFLGameplanMap: proGameplanMap, - NFLDepthChart: proDepthChart, - TopCFBPassers: topPassers, - TopCFBRushers: topRushers, - TopCFBReceivers: topReceivers, - HistoricCollegePlayers: historicCollegePlayers, + return BootstrapDataLanding{ + CollegeTeam: collegeTeam, + CollegeRosterMap: collegePlayerMap, + CollegeInjuryReport: injuredCollegePlayers, + CollegeNotifications: collegeNotifications, + AllCollegeGames: collegeGames, + PortalPlayers: portalPlayers, + ProTeam: proTeam, + ProNotifications: proNotifications, + AllProGames: proGames, + TopCFBPassers: topCfbPassers, + TopCFBRushers: topCfbRushers, + TopCFBReceivers: topCfbReceivers, + TopNFLPassers: topNflPassers, + TopNFLRushers: topNflRushers, + TopNFLReceivers: topNflReceivers, + ProRosterMap: proRosterMap, + PracticeSquadPlayers: practiceSquadPlayers, + ProInjuryReport: injuredProPlayers, + CapsheetMap: capsheetMap, + RetiredPlayers: retiredPlayers, + CollegeStandings: collegeStandings, + ProStandings: proStandings, } } -func GetSecondBootstrapData(collegeID, proID string) BootstrapDataTwo { - log.Println("GetSecondBootstrapData called with collegeID:", collegeID, "and proID:", proID) - +func GetTeamRosterBootstrap(collegeID, nflID string) BootstrapDataTeamRoster { var wg sync.WaitGroup - var mu sync.Mutex - // College Data var ( - collegeStandings []structs.CollegeStandings - teamProfileMap map[string]*structs.RecruitingTeamProfile - collegeNews []structs.NewsLog - collegeGames []structs.CollegeGame + contractMap map[uint]structs.NFLContract + extensionMap map[uint]structs.NFLExtensionOffer + collegePromises []structs.CollegePromise ) - // Professional Data - var ( - proStandings []structs.NFLStandings - proRosterMap map[uint][]structs.NFLPlayer - practiceSquadPlayers []structs.NFLPlayer - capsheetMap map[uint]structs.NFLCapsheet - injuredProPlayers []structs.NFLPlayer - proGames []structs.NFLGame - topPassers []structs.NFLPlayer - topRushers []structs.NFLPlayer - topReceivers []structs.NFLPlayer - retiredPlayers []structs.NFLRetiredPlayer - ) - ts := GetTimestamp() - log.Println("Timestamp:", ts) - _, gtStr := ts.GetNFLCurrentGameType() - seasonID := strconv.Itoa(int(ts.NFLSeasonID)) - // Start concurrent queries if len(collegeID) > 0 && collegeID != "0" { - wg.Add(4) + wg.Add(1) go func() { - defer wg.Done() - log.Println("Fetching College News Logs...") - collegeNews = GetAllNewsLogs() - log.Println("Fetched College News Logs, count:", len(collegeNews)) + promises := GetCollegePromisesByTeamID(collegeID) + collegePromises = promises }() + } + + if len(nflID) > 0 && nflID != "0" { + wg.Add(2) go func() { defer wg.Done() - log.Println("Fetching College Games for seasonID:", ts.CollegeSeasonID) - collegeGames = GetCollegeGamesBySeasonID(strconv.Itoa(int(ts.CollegeSeasonID))) - log.Println("Fetched College Games, count:", len(collegeGames)) + contractMap = GetContractMap() }() + go func() { defer wg.Done() - log.Println("Fetching Team Profile Map...") - teamProfileMap = GetTeamProfileMap() - log.Println("Fetched Team Profile Map, count:", len(teamProfileMap)) + extensionMap = GetExtensionMap() }() + } + return BootstrapDataTeamRoster{ + ContractMap: contractMap, + ExtensionMap: extensionMap, + CollegePromises: collegePromises, + } +} + +func GetRecruitingBootstrap(collegeID string) BootstrapDataRecruiting { + var wg sync.WaitGroup + var ( + recruits []structs.Croot + recruitProfiles []structs.RecruitPlayerProfile + teamProfileMap map[string]*structs.RecruitingTeamProfile + ) + + if len(collegeID) > 0 && collegeID != "0" { + wg.Add(3) go func() { defer wg.Done() - log.Println("Fetching College Standings for seasonID:", ts.CollegeSeasonID) - collegeStandings = GetAllCollegeStandingsBySeasonID(strconv.Itoa(int(ts.CollegeSeasonID))) - log.Println("Fetched College Standings, count:", len(collegeStandings)) + recruits = GetAllRecruits() }() - log.Println("Initiated all College data queries.") - } - if len(proID) > 0 && proID != "0" { - nflTeamID := util.ConvertStringToInt(proID) - wg.Add(5) + go func() { defer wg.Done() - log.Println("Fetching NFL Standings for seasonID:", ts.NFLSeasonID) - proStandings = GetAllNFLStandingsBySeasonID(strconv.Itoa(int(ts.NFLSeasonID))) - log.Println("Fetched NFL Standings, count:", len(proStandings)) + teamProfileMap = GetTeamProfileMap() }() go func() { defer wg.Done() - log.Println("Fetching NFL Games for seasonID:", ts.NFLSeasonID) - proGames = GetNFLGamesBySeasonID(strconv.Itoa(int(ts.NFLSeasonID))) - log.Println("Fetched NFL Games, count:", len(proGames)) + recruitProfiles = repository.FindRecruitPlayerProfileRecords(collegeID, "", false, false, true) }() + } + + wg.Wait() + + return BootstrapDataRecruiting{ + Recruits: recruits, + RecruitProfiles: recruitProfiles, + TeamProfileMap: teamProfileMap, + } +} + +func GetFreeAgencyBootstrap(proID string) BootstrapDataFreeAgency { + var wg sync.WaitGroup + var ( + freeAgents []structs.NFLPlayer + waiverPlayers []structs.NFLPlayer + freeAgentoffers []structs.FreeAgencyOffer + waiverOffers []structs.NFLWaiverOffer + ) + + if len(proID) > 0 && proID != "0" { + wg.Add(4) + go func() { defer wg.Done() - log.Println("Fetching Capsheet Map...") - capsheetMap = getCapsheetMap() - log.Println("Fetched Capsheet Map, count:", len(capsheetMap)) + freeAgentoffers = repository.FindAllFreeAgentOffers(repository.FreeAgencyQuery{IsActive: true}) }() + go func() { defer wg.Done() - log.Println("Fetching Capsheet Map...") - retiredPlayers = GetAllRetiredPlayers() - log.Println("Fetched Capsheet Map, count:", len(capsheetMap)) + waiverOffers = repository.FindAllWaiverOffers(repository.FreeAgencyQuery{IsActive: true}) }() + go func() { defer wg.Done() - log.Println("Fetching NFL Players for roster mapping...") - proPlayers := GetAllNFLPlayers() - nflStats := GetNFLPlayerSeasonStatsBySeason(seasonID, gtStr) + freeAgents = GetAllFreeAgents() + }() - mu.Lock() - nflPlayerMap := MakeNFLPlayerMap(proPlayers) - proRosterMap = MakeNFLPlayerMapByTeamID(proPlayers, true) - injuredProPlayers = MakeProInjuryList(proPlayers) - practiceSquadPlayers = MakePracticeSquadList(proPlayers) - topPassers = getNFLOrderedListByStatType("PASSING", uint(nflTeamID), nflStats, nflPlayerMap) - topRushers = getNFLOrderedListByStatType("RUSHING", uint(nflTeamID), nflStats, nflPlayerMap) - topReceivers = getNFLOrderedListByStatType("RECEIVING", uint(nflTeamID), nflStats, nflPlayerMap) - mu.Unlock() - log.Println("Fetched NFL Players, roster count:", len(proRosterMap), "injured count:", len(injuredProPlayers)) + go func() { + defer wg.Done() + waiverPlayers = GetAllWaiverWirePlayers() }() - log.Println("Initiated all Pro data queries.") } + wg.Wait() - log.Println("Completed all football data queries.") - return BootstrapDataTwo{ - CollegeStandings: collegeStandings, - CollegeNews: collegeNews, - AllCollegeGames: collegeGames, - TeamProfileMap: teamProfileMap, - ProStandings: proStandings, - ProRosterMap: proRosterMap, - PracticeSquadPlayers: practiceSquadPlayers, - CapsheetMap: capsheetMap, - ProInjuryReport: injuredProPlayers, - AllProGames: proGames, - TopNFLPassers: topPassers, - TopNFLRushers: topRushers, - TopNFLReceivers: topReceivers, - RetiredPlayers: retiredPlayers, + + return BootstrapDataFreeAgency{ + FreeAgentOffers: freeAgentoffers, + WaiverOffers: waiverOffers, + FreeAgents: freeAgents, + WaiverPlayers: waiverPlayers, } } -func GetThirdBootstrapData(collegeID, proID string) BootstrapDataThree { +func GetCollegePollsBootstrap(username, collegeID, seasonID string) BootstrapDataScheduling { var wg sync.WaitGroup - var mu sync.Mutex - - // College Data var ( - recruits []structs.Croot - recruitProfiles []structs.RecruitPlayerProfile - collegeDepthChartMap map[uint]structs.CollegeTeamDepthChart - faceDataMap map[uint]structs.FaceDataResponse + officialPolls []structs.CollegePollOfficial + pollSubmission structs.CollegePollSubmission ) + if len(collegeID) > 0 && collegeID != "0" { + wg.Add(2) + go func() { + defer wg.Done() + officialPolls = GetOfficialPollBySeasonID(seasonID) + }() + go func() { + defer wg.Done() + pollSubmission = GetPollSubmissionByUsernameWeekAndSeason(username) + }() + wg.Wait() + } + + return BootstrapDataScheduling{ + PollSubmission: pollSubmission, + OfficialPolls: officialPolls, + } +} + +func GetDraftBootstrap(proID string) BootstrapDataDraft { + var wg sync.WaitGroup - // Professional Data var ( - proNews []structs.NewsLog - proDepthChartMap map[uint]structs.NFLDepthChart - contractMap map[uint]structs.NFLContract - extensionMap map[uint]structs.NFLExtensionOffer - freeAgents []structs.NFLPlayer - waiverPlayers []structs.NFLPlayer - freeAgentoffers []structs.FreeAgencyOffer - waiverOffers []structs.NFLWaiverOffer - nflDraftees []models.NFLDraftee + nflDraftees []models.NFLDraftee + warRoomMap map[uint]models.NFLWarRoom // BY TEAM + scoutingProfileMap map[uint]models.ScoutingProfile // By TEAM ) - if len(collegeID) > 0 && collegeID != "0" { + if len(proID) > 0 && proID != "0" { wg.Add(3) go func() { defer wg.Done() - recruits = GetAllRecruits() + nflDraftees = GetAllNFLDraftees() }() go func() { defer wg.Done() - collegeDCs := GetAllCollegeDepthcharts() - collegeDepthChartMap = MakeCollegeDepthChartMap(collegeDCs) + nflWarRooms := GetNFLWarRooms() + warRoomMap = MakeNFLWarRoomMap(nflWarRooms) }() + go func() { defer wg.Done() - recruitProfiles = repository.FindRecruitPlayerProfileRecords(collegeID, "", false, false, true) + scoutingProfiles := GetAllScoutingProfiles() + scoutingProfileMap = MakeScoutingProfileMapByTeam(scoutingProfiles) + }() + + log.Println("Initiated all Pro data queries.") + } + wg.Wait() + + return BootstrapDataDraft{ + NFLDraftees: nflDraftees, + NFLWarRoomMap: warRoomMap, + DraftScoutingProfileMap: scoutingProfileMap, } +} - if len(proID) > 0 && proID != "0" { - wg.Add(9) +func GetPortalBootstrap(collegeID string) BootstrapDataPortal { + // On assumption that initial bootstrap still returns an entire college player map including transfers + var wg sync.WaitGroup + var ( + teamProfileMap map[string]*structs.RecruitingTeamProfile // Get Just in Case because this page also uses this data + transferPortalProfiles []structs.TransferPortalProfile + collegePromises []structs.CollegePromise + ) + if len(collegeID) > 0 && collegeID != "0" { + wg.Add(3) go func() { defer wg.Done() - dcs := GetAllNFLDepthcharts() - mu.Lock() - proDepthChartMap = MakeNFLDepthChartMap(dcs) - mu.Unlock() + transferPortalProfiles = GetTransferPortalProfilesByTeamID(collegeID) }() + go func() { defer wg.Done() - proNews = GetAllNFLNewsLogs() + teamProfileMap = GetTeamProfileMap() }() go func() { - defer wg.Done() - freeAgentoffers = repository.FindAllFreeAgentOffers(repository.FreeAgencyQuery{IsActive: true}) + promises := GetCollegePromisesByTeamID(collegeID) + collegePromises = promises }() + } + + wg.Wait() + + return BootstrapDataPortal{ + TransferPortalProfiles: transferPortalProfiles, + TeamProfileMap: teamProfileMap, + CollegePromises: collegePromises, + } +} + +func GetGameplanBootstrap(collegeID, proID string) BootstrapDataGameplan { + var wg sync.WaitGroup + var mu sync.Mutex + var ( + collegeGameplanMap map[uint]structs.CollegeGameplan + collegeDepthChart structs.CollegeTeamDepthChart + proGameplanMap map[uint]structs.NFLGameplan + proDepthChart structs.NFLDepthChart + collegeDepthChartMap map[uint]structs.CollegeTeamDepthChart + proDepthChartMap map[uint]structs.NFLDepthChart + ) + + if len(collegeID) > 0 && collegeID != "0" { + wg.Add(3) go func() { defer wg.Done() - waiverOffers = repository.FindAllWaiverOffers(repository.FreeAgencyQuery{IsActive: true}) + collegeGameplanMap = GetCollegeGameplanMap() + }() + go func() { + defer wg.Done() + collegeDepthChart = GetDepthchartByTeamID(collegeID) }() go func() { defer wg.Done() - contractMap = GetContractMap() + collegeDCs := GetAllCollegeDepthcharts() + collegeDepthChartMap = MakeCollegeDepthChartMap(collegeDCs) }() + } + if len(proID) > 0 && proID != "0" { + wg.Add(3) go func() { defer wg.Done() - extensionMap = GetExtensionMap() + gameplans := GetAllNFLGameplans() + proGameplanMap = MakeNFLGameplanMap(gameplans) }() go func() { defer wg.Done() - freeAgents = GetAllFreeAgents() + proDepthChart = GetNFLDepthchartByTeamID(proID) + }() + go func() { + defer wg.Done() + dcs := GetAllNFLDepthcharts() + mu.Lock() + proDepthChartMap = MakeNFLDepthChartMap(dcs) + mu.Unlock() }() + } + + wg.Wait() + return BootstrapDataGameplan{ + CollegeGameplanMap: collegeGameplanMap, + CollegeDepthChart: collegeDepthChart, + CollegeDepthChartMap: collegeDepthChartMap, + ProGameplanMap: proGameplanMap, + ProDepthChart: proDepthChart, + ProDepthChartMap: proDepthChartMap, + } +} + +func GetNewsBootstrap(collegeID, proID string) BootstrapDataNews { + var wg sync.WaitGroup + + var ( + collegeNews []structs.NewsLog + proNews []structs.NewsLog + ) + + if len(collegeID) > 0 && collegeID != "0" { + wg.Add(1) go func() { defer wg.Done() - waiverPlayers = GetAllWaiverWirePlayers() + log.Println("Fetching College News Logs...") + collegeNews = GetAllCFBNewsLogs() + log.Println("Fetched College News Logs, count:", len(collegeNews)) }() + log.Println("Initiated all College data queries.") + } + if len(proID) > 0 && proID != "0" { + wg.Add(1) go func() { defer wg.Done() - nflDraftees = GetAllNFLDraftees() + proNews = GetAllNFLNewsLogs() }() } - wg.Add(1) - go func() { - defer wg.Done() - faceDataMap = GetAllFaces() - }() - wg.Wait() - return BootstrapDataThree{ - CollegeDepthChartMap: collegeDepthChartMap, - Recruits: recruits, - RecruitProfiles: recruitProfiles, - FreeAgentOffers: freeAgentoffers, - WaiverWireOffers: waiverOffers, - ProNews: proNews, - NFLDepthChartMap: proDepthChartMap, - ContractMap: contractMap, - ExtensionMap: extensionMap, - FreeAgents: freeAgents, - WaiverPlayers: waiverPlayers, - FaceData: faceDataMap, - NFLDraftees: nflDraftees, + return BootstrapDataNews{ + CollegeNews: collegeNews, + ProNews: proNews, } } diff --git a/managers/BootstrapManager_easyjson.go b/managers/BootstrapManager_easyjson.go deleted file mode 100644 index ba943a37..00000000 --- a/managers/BootstrapManager_easyjson.go +++ /dev/null @@ -1,20475 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package managers - -import ( - json "encoding/json" - models "github.com/CalebRose/SimFBA/models" - structs "github.com/CalebRose/SimFBA/structs" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" - time "time" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(in *jlexer.Lexer, out *CollegeTeamProfileData) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "CareerStats": - if in.IsNull() { - in.Skip() - out.CareerStats = nil - } else { - in.Delim('[') - if out.CareerStats == nil { - if !in.IsDelim(']') { - out.CareerStats = make([]structs.CollegePlayerSeasonStats, 0, 0) - } else { - out.CareerStats = []structs.CollegePlayerSeasonStats{} - } - } else { - out.CareerStats = (out.CareerStats)[:0] - } - for !in.IsDelim(']') { - var v1 structs.CollegePlayerSeasonStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in, &v1) - out.CareerStats = append(out.CareerStats, v1) - in.WantComma() - } - in.Delim(']') - } - case "CollegeStandings": - if in.IsNull() { - in.Skip() - out.CollegeStandings = nil - } else { - in.Delim('[') - if out.CollegeStandings == nil { - if !in.IsDelim(']') { - out.CollegeStandings = make([]structs.CollegeStandings, 0, 0) - } else { - out.CollegeStandings = []structs.CollegeStandings{} - } - } else { - out.CollegeStandings = (out.CollegeStandings)[:0] - } - for !in.IsDelim(']') { - var v2 structs.CollegeStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v2) - out.CollegeStandings = append(out.CollegeStandings, v2) - in.WantComma() - } - in.Delim(']') - } - case "Rivalries": - if in.IsNull() { - in.Skip() - out.Rivalries = nil - } else { - in.Delim('[') - if out.Rivalries == nil { - if !in.IsDelim(']') { - out.Rivalries = make([]structs.FlexComparisonModel, 0, 0) - } else { - out.Rivalries = []structs.FlexComparisonModel{} - } - } else { - out.Rivalries = (out.Rivalries)[:0] - } - for !in.IsDelim(']') { - var v3 structs.FlexComparisonModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs2(in, &v3) - out.Rivalries = append(out.Rivalries, v3) - in.WantComma() - } - in.Delim(']') - } - case "PlayerMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.PlayerMap = make(map[uint]structs.CollegePlayer) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v4 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v4) - (out.PlayerMap)[key] = v4 - in.WantComma() - } - in.Delim('}') - } - case "CollegeGames": - if in.IsNull() { - in.Skip() - out.CollegeGames = nil - } else { - in.Delim('[') - if out.CollegeGames == nil { - if !in.IsDelim(']') { - out.CollegeGames = make([]structs.CollegeGame, 0, 0) - } else { - out.CollegeGames = []structs.CollegeGame{} - } - } else { - out.CollegeGames = (out.CollegeGames)[:0] - } - for !in.IsDelim(']') { - var v5 structs.CollegeGame - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v5) - out.CollegeGames = append(out.CollegeGames, v5) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(out *jwriter.Writer, in CollegeTeamProfileData) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"CareerStats\":" - out.RawString(prefix[1:]) - if in.CareerStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v6, v7 := range in.CareerStats { - if v6 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out, v7) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"CollegeStandings\":" - out.RawString(prefix) - if in.CollegeStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v8, v9 := range in.CollegeStandings { - if v8 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v9) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"Rivalries\":" - out.RawString(prefix) - if in.Rivalries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v10, v11 := range in.Rivalries { - if v10 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs2(out, v11) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"PlayerMap\":" - out.RawString(prefix) - if in.PlayerMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v12First := true - for v12Name, v12Value := range in.PlayerMap { - if v12First { - v12First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v12Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v12Value) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"CollegeGames\":" - out.RawString(prefix) - if in.CollegeGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v13, v14 := range in.CollegeGames { - if v13 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v14) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CollegeTeamProfileData) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CollegeTeamProfileData) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CollegeTeamProfileData) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CollegeTeamProfileData) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(l, v) -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in *jlexer.Lexer, out *structs.CollegeGame) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "WeekID": - out.WeekID = int(in.Int()) - case "Week": - out.Week = int(in.Int()) - case "SeasonID": - out.SeasonID = int(in.Int()) - case "HomeTeamRank": - out.HomeTeamRank = uint(in.Uint()) - case "HomeTeamID": - out.HomeTeamID = int(in.Int()) - case "HomeTeam": - out.HomeTeam = string(in.String()) - case "HomeTeamCoach": - out.HomeTeamCoach = string(in.String()) - case "HomeTeamWin": - out.HomeTeamWin = bool(in.Bool()) - case "AwayTeamRank": - out.AwayTeamRank = uint(in.Uint()) - case "AwayTeamID": - out.AwayTeamID = int(in.Int()) - case "AwayTeam": - out.AwayTeam = string(in.String()) - case "AwayTeamCoach": - out.AwayTeamCoach = string(in.String()) - case "AwayTeamWin": - out.AwayTeamWin = bool(in.Bool()) - case "MVP": - out.MVP = string(in.String()) - case "HomeTeamScore": - out.HomeTeamScore = int(in.Int()) - case "AwayTeamScore": - out.AwayTeamScore = int(in.Int()) - case "TimeSlot": - out.TimeSlot = string(in.String()) - case "StadiumID": - out.StadiumID = uint(in.Uint()) - case "Stadium": - out.Stadium = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "Region": - out.Region = string(in.String()) - case "LowTemp": - out.LowTemp = float64(in.Float64()) - case "HighTemp": - out.HighTemp = float64(in.Float64()) - case "GameTemp": - out.GameTemp = float64(in.Float64()) - case "Cloud": - out.Cloud = string(in.String()) - case "Precip": - out.Precip = string(in.String()) - case "WindSpeed": - out.WindSpeed = float64(in.Float64()) - case "WindCategory": - out.WindCategory = string(in.String()) - case "IsNeutral": - out.IsNeutral = bool(in.Bool()) - case "IsDomed": - out.IsDomed = bool(in.Bool()) - case "IsNightGame": - out.IsNightGame = bool(in.Bool()) - case "IsConference": - out.IsConference = bool(in.Bool()) - case "IsDivisional": - out.IsDivisional = bool(in.Bool()) - case "IsConferenceChampionship": - out.IsConferenceChampionship = bool(in.Bool()) - case "IsBowlGame": - out.IsBowlGame = bool(in.Bool()) - case "IsPlayoffGame": - out.IsPlayoffGame = bool(in.Bool()) - case "IsNationalChampionship": - out.IsNationalChampionship = bool(in.Bool()) - case "IsRivalryGame": - out.IsRivalryGame = bool(in.Bool()) - case "GameComplete": - out.GameComplete = bool(in.Bool()) - case "IsSpringGame": - out.IsSpringGame = bool(in.Bool()) - case "GameTitle": - out.GameTitle = string(in.String()) - case "NextGameID": - out.NextGameID = uint(in.Uint()) - case "NextGameHOA": - out.NextGameHOA = string(in.String()) - case "HomePreviousBye": - out.HomePreviousBye = bool(in.Bool()) - case "AwayPreviousBye": - out.AwayPreviousBye = bool(in.Bool()) - case "ConferenceID": - out.ConferenceID = uint(in.Uint()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out *jwriter.Writer, in structs.CollegeGame) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"WeekID\":" - out.RawString(prefix[1:]) - out.Int(int(in.WeekID)) - } - { - const prefix string = ",\"Week\":" - out.RawString(prefix) - out.Int(int(in.Week)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Int(int(in.SeasonID)) - } - { - const prefix string = ",\"HomeTeamRank\":" - out.RawString(prefix) - out.Uint(uint(in.HomeTeamRank)) - } - { - const prefix string = ",\"HomeTeamID\":" - out.RawString(prefix) - out.Int(int(in.HomeTeamID)) - } - { - const prefix string = ",\"HomeTeam\":" - out.RawString(prefix) - out.String(string(in.HomeTeam)) - } - { - const prefix string = ",\"HomeTeamCoach\":" - out.RawString(prefix) - out.String(string(in.HomeTeamCoach)) - } - { - const prefix string = ",\"HomeTeamWin\":" - out.RawString(prefix) - out.Bool(bool(in.HomeTeamWin)) - } - { - const prefix string = ",\"AwayTeamRank\":" - out.RawString(prefix) - out.Uint(uint(in.AwayTeamRank)) - } - { - const prefix string = ",\"AwayTeamID\":" - out.RawString(prefix) - out.Int(int(in.AwayTeamID)) - } - { - const prefix string = ",\"AwayTeam\":" - out.RawString(prefix) - out.String(string(in.AwayTeam)) - } - { - const prefix string = ",\"AwayTeamCoach\":" - out.RawString(prefix) - out.String(string(in.AwayTeamCoach)) - } - { - const prefix string = ",\"AwayTeamWin\":" - out.RawString(prefix) - out.Bool(bool(in.AwayTeamWin)) - } - { - const prefix string = ",\"MVP\":" - out.RawString(prefix) - out.String(string(in.MVP)) - } - { - const prefix string = ",\"HomeTeamScore\":" - out.RawString(prefix) - out.Int(int(in.HomeTeamScore)) - } - { - const prefix string = ",\"AwayTeamScore\":" - out.RawString(prefix) - out.Int(int(in.AwayTeamScore)) - } - { - const prefix string = ",\"TimeSlot\":" - out.RawString(prefix) - out.String(string(in.TimeSlot)) - } - { - const prefix string = ",\"StadiumID\":" - out.RawString(prefix) - out.Uint(uint(in.StadiumID)) - } - { - const prefix string = ",\"Stadium\":" - out.RawString(prefix) - out.String(string(in.Stadium)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"Region\":" - out.RawString(prefix) - out.String(string(in.Region)) - } - { - const prefix string = ",\"LowTemp\":" - out.RawString(prefix) - out.Float64(float64(in.LowTemp)) - } - { - const prefix string = ",\"HighTemp\":" - out.RawString(prefix) - out.Float64(float64(in.HighTemp)) - } - { - const prefix string = ",\"GameTemp\":" - out.RawString(prefix) - out.Float64(float64(in.GameTemp)) - } - { - const prefix string = ",\"Cloud\":" - out.RawString(prefix) - out.String(string(in.Cloud)) - } - { - const prefix string = ",\"Precip\":" - out.RawString(prefix) - out.String(string(in.Precip)) - } - { - const prefix string = ",\"WindSpeed\":" - out.RawString(prefix) - out.Float64(float64(in.WindSpeed)) - } - { - const prefix string = ",\"WindCategory\":" - out.RawString(prefix) - out.String(string(in.WindCategory)) - } - { - const prefix string = ",\"IsNeutral\":" - out.RawString(prefix) - out.Bool(bool(in.IsNeutral)) - } - { - const prefix string = ",\"IsDomed\":" - out.RawString(prefix) - out.Bool(bool(in.IsDomed)) - } - { - const prefix string = ",\"IsNightGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsNightGame)) - } - { - const prefix string = ",\"IsConference\":" - out.RawString(prefix) - out.Bool(bool(in.IsConference)) - } - { - const prefix string = ",\"IsDivisional\":" - out.RawString(prefix) - out.Bool(bool(in.IsDivisional)) - } - { - const prefix string = ",\"IsConferenceChampionship\":" - out.RawString(prefix) - out.Bool(bool(in.IsConferenceChampionship)) - } - { - const prefix string = ",\"IsBowlGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsBowlGame)) - } - { - const prefix string = ",\"IsPlayoffGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsPlayoffGame)) - } - { - const prefix string = ",\"IsNationalChampionship\":" - out.RawString(prefix) - out.Bool(bool(in.IsNationalChampionship)) - } - { - const prefix string = ",\"IsRivalryGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsRivalryGame)) - } - { - const prefix string = ",\"GameComplete\":" - out.RawString(prefix) - out.Bool(bool(in.GameComplete)) - } - { - const prefix string = ",\"IsSpringGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsSpringGame)) - } - { - const prefix string = ",\"GameTitle\":" - out.RawString(prefix) - out.String(string(in.GameTitle)) - } - { - const prefix string = ",\"NextGameID\":" - out.RawString(prefix) - out.Uint(uint(in.NextGameID)) - } - { - const prefix string = ",\"NextGameHOA\":" - out.RawString(prefix) - out.String(string(in.NextGameHOA)) - } - { - const prefix string = ",\"HomePreviousBye\":" - out.RawString(prefix) - out.Bool(bool(in.HomePreviousBye)) - } - { - const prefix string = ",\"AwayPreviousBye\":" - out.RawString(prefix) - out.Bool(bool(in.AwayPreviousBye)) - } - { - const prefix string = ",\"ConferenceID\":" - out.RawString(prefix) - out.Uint(uint(in.ConferenceID)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in *jlexer.Lexer, out *structs.CollegePlayer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "TeamID": - out.TeamID = int(in.Int()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "HighSchool": - out.HighSchool = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "Year": - out.Year = int(in.Int()) - case "IsRedshirt": - out.IsRedshirt = bool(in.Bool()) - case "IsRedshirting": - out.IsRedshirting = bool(in.Bool()) - case "HasGraduated": - out.HasGraduated = bool(in.Bool()) - case "TransferStatus": - out.TransferStatus = int(in.Int()) - case "TransferLikeliness": - out.TransferLikeliness = string(in.String()) - case "Stats": - if in.IsNull() { - in.Skip() - out.Stats = nil - } else { - in.Delim('[') - if out.Stats == nil { - if !in.IsDelim(']') { - out.Stats = make([]structs.CollegePlayerStats, 0, 0) - } else { - out.Stats = []structs.CollegePlayerStats{} - } - } else { - out.Stats = (out.Stats)[:0] - } - for !in.IsDelim(']') { - var v15 structs.CollegePlayerStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in, &v15) - out.Stats = append(out.Stats, v15) - in.WantComma() - } - in.Delim(']') - } - case "SeasonStats": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in, &out.SeasonStats) - case "HasProgressed": - out.HasProgressed = bool(in.Bool()) - case "WillDeclare": - out.WillDeclare = bool(in.Bool()) - case "LegacyID": - out.LegacyID = uint(in.Uint()) - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "Position": - out.Position = string(in.String()) - case "Archetype": - out.Archetype = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "Height": - out.Height = int(in.Int()) - case "Weight": - out.Weight = int(in.Int()) - case "Age": - out.Age = int(in.Int()) - case "Stars": - out.Stars = int(in.Int()) - case "Overall": - out.Overall = int(in.Int()) - case "Stamina": - out.Stamina = int(in.Int()) - case "Injury": - out.Injury = int(in.Int()) - case "FootballIQ": - out.FootballIQ = int(in.Int()) - case "Speed": - out.Speed = int(in.Int()) - case "Carrying": - out.Carrying = int(in.Int()) - case "Agility": - out.Agility = int(in.Int()) - case "Catching": - out.Catching = int(in.Int()) - case "RouteRunning": - out.RouteRunning = int(in.Int()) - case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) - case "ManCoverage": - out.ManCoverage = int(in.Int()) - case "Strength": - out.Strength = int(in.Int()) - case "Tackle": - out.Tackle = int(in.Int()) - case "PassBlock": - out.PassBlock = int(in.Int()) - case "RunBlock": - out.RunBlock = int(in.Int()) - case "PassRush": - out.PassRush = int(in.Int()) - case "RunDefense": - out.RunDefense = int(in.Int()) - case "ThrowPower": - out.ThrowPower = int(in.Int()) - case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) - case "KickAccuracy": - out.KickAccuracy = int(in.Int()) - case "KickPower": - out.KickPower = int(in.Int()) - case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) - case "PuntPower": - out.PuntPower = int(in.Int()) - case "Progression": - out.Progression = int(in.Int()) - case "Discipline": - out.Discipline = int(in.Int()) - case "PotentialGrade": - out.PotentialGrade = string(in.String()) - case "FreeAgency": - out.FreeAgency = string(in.String()) - case "Personality": - out.Personality = string(in.String()) - case "RecruitingBias": - out.RecruitingBias = string(in.String()) - case "WorkEthic": - out.WorkEthic = string(in.String()) - case "AcademicBias": - out.AcademicBias = string(in.String()) - case "IsInjured": - out.IsInjured = bool(in.Bool()) - case "InjuryName": - out.InjuryName = string(in.String()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryReserve": - out.InjuryReserve = bool(in.Bool()) - case "PrimeAge": - out.PrimeAge = uint(in.Uint()) - case "Clutch": - out.Clutch = int(in.Int()) - case "Shotgun": - out.Shotgun = int(in.Int()) - case "PositionTwo": - out.PositionTwo = string(in.String()) - case "ArchetypeTwo": - out.ArchetypeTwo = string(in.String()) - case "RelativeID": - out.RelativeID = uint(in.Uint()) - case "RelativeType": - out.RelativeType = uint(in.Uint()) - case "Notes": - out.Notes = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out *jwriter.Writer, in structs.CollegePlayer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"HighSchool\":" - out.RawString(prefix) - out.String(string(in.HighSchool)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Int(int(in.Year)) - } - { - const prefix string = ",\"IsRedshirt\":" - out.RawString(prefix) - out.Bool(bool(in.IsRedshirt)) - } - { - const prefix string = ",\"IsRedshirting\":" - out.RawString(prefix) - out.Bool(bool(in.IsRedshirting)) - } - { - const prefix string = ",\"HasGraduated\":" - out.RawString(prefix) - out.Bool(bool(in.HasGraduated)) - } - { - const prefix string = ",\"TransferStatus\":" - out.RawString(prefix) - out.Int(int(in.TransferStatus)) - } - { - const prefix string = ",\"TransferLikeliness\":" - out.RawString(prefix) - out.String(string(in.TransferLikeliness)) - } - { - const prefix string = ",\"Stats\":" - out.RawString(prefix) - if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v16, v17 := range in.Stats { - if v16 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out, v17) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"SeasonStats\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out, in.SeasonStats) - } - { - const prefix string = ",\"HasProgressed\":" - out.RawString(prefix) - out.Bool(bool(in.HasProgressed)) - } - { - const prefix string = ",\"WillDeclare\":" - out.RawString(prefix) - out.Bool(bool(in.WillDeclare)) - } - { - const prefix string = ",\"LegacyID\":" - out.RawString(prefix) - out.Uint(uint(in.LegacyID)) - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"Archetype\":" - out.RawString(prefix) - out.String(string(in.Archetype)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"Height\":" - out.RawString(prefix) - out.Int(int(in.Height)) - } - { - const prefix string = ",\"Weight\":" - out.RawString(prefix) - out.Int(int(in.Weight)) - } - { - const prefix string = ",\"Age\":" - out.RawString(prefix) - out.Int(int(in.Age)) - } - { - const prefix string = ",\"Stars\":" - out.RawString(prefix) - out.Int(int(in.Stars)) - } - { - const prefix string = ",\"Overall\":" - out.RawString(prefix) - out.Int(int(in.Overall)) - } - { - const prefix string = ",\"Stamina\":" - out.RawString(prefix) - out.Int(int(in.Stamina)) - } - { - const prefix string = ",\"Injury\":" - out.RawString(prefix) - out.Int(int(in.Injury)) - } - { - const prefix string = ",\"FootballIQ\":" - out.RawString(prefix) - out.Int(int(in.FootballIQ)) - } - { - const prefix string = ",\"Speed\":" - out.RawString(prefix) - out.Int(int(in.Speed)) - } - { - const prefix string = ",\"Carrying\":" - out.RawString(prefix) - out.Int(int(in.Carrying)) - } - { - const prefix string = ",\"Agility\":" - out.RawString(prefix) - out.Int(int(in.Agility)) - } - { - const prefix string = ",\"Catching\":" - out.RawString(prefix) - out.Int(int(in.Catching)) - } - { - const prefix string = ",\"RouteRunning\":" - out.RawString(prefix) - out.Int(int(in.RouteRunning)) - } - { - const prefix string = ",\"ZoneCoverage\":" - out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) - } - { - const prefix string = ",\"ManCoverage\":" - out.RawString(prefix) - out.Int(int(in.ManCoverage)) - } - { - const prefix string = ",\"Strength\":" - out.RawString(prefix) - out.Int(int(in.Strength)) - } - { - const prefix string = ",\"Tackle\":" - out.RawString(prefix) - out.Int(int(in.Tackle)) - } - { - const prefix string = ",\"PassBlock\":" - out.RawString(prefix) - out.Int(int(in.PassBlock)) - } - { - const prefix string = ",\"RunBlock\":" - out.RawString(prefix) - out.Int(int(in.RunBlock)) - } - { - const prefix string = ",\"PassRush\":" - out.RawString(prefix) - out.Int(int(in.PassRush)) - } - { - const prefix string = ",\"RunDefense\":" - out.RawString(prefix) - out.Int(int(in.RunDefense)) - } - { - const prefix string = ",\"ThrowPower\":" - out.RawString(prefix) - out.Int(int(in.ThrowPower)) - } - { - const prefix string = ",\"ThrowAccuracy\":" - out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) - } - { - const prefix string = ",\"KickAccuracy\":" - out.RawString(prefix) - out.Int(int(in.KickAccuracy)) - } - { - const prefix string = ",\"KickPower\":" - out.RawString(prefix) - out.Int(int(in.KickPower)) - } - { - const prefix string = ",\"PuntAccuracy\":" - out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) - } - { - const prefix string = ",\"PuntPower\":" - out.RawString(prefix) - out.Int(int(in.PuntPower)) - } - { - const prefix string = ",\"Progression\":" - out.RawString(prefix) - out.Int(int(in.Progression)) - } - { - const prefix string = ",\"Discipline\":" - out.RawString(prefix) - out.Int(int(in.Discipline)) - } - { - const prefix string = ",\"PotentialGrade\":" - out.RawString(prefix) - out.String(string(in.PotentialGrade)) - } - { - const prefix string = ",\"FreeAgency\":" - out.RawString(prefix) - out.String(string(in.FreeAgency)) - } - { - const prefix string = ",\"Personality\":" - out.RawString(prefix) - out.String(string(in.Personality)) - } - { - const prefix string = ",\"RecruitingBias\":" - out.RawString(prefix) - out.String(string(in.RecruitingBias)) - } - { - const prefix string = ",\"WorkEthic\":" - out.RawString(prefix) - out.String(string(in.WorkEthic)) - } - { - const prefix string = ",\"AcademicBias\":" - out.RawString(prefix) - out.String(string(in.AcademicBias)) - } - { - const prefix string = ",\"IsInjured\":" - out.RawString(prefix) - out.Bool(bool(in.IsInjured)) - } - { - const prefix string = ",\"InjuryName\":" - out.RawString(prefix) - out.String(string(in.InjuryName)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryReserve\":" - out.RawString(prefix) - out.Bool(bool(in.InjuryReserve)) - } - { - const prefix string = ",\"PrimeAge\":" - out.RawString(prefix) - out.Uint(uint(in.PrimeAge)) - } - { - const prefix string = ",\"Clutch\":" - out.RawString(prefix) - out.Int(int(in.Clutch)) - } - { - const prefix string = ",\"Shotgun\":" - out.RawString(prefix) - out.Int(int(in.Shotgun)) - } - { - const prefix string = ",\"PositionTwo\":" - out.RawString(prefix) - out.String(string(in.PositionTwo)) - } - { - const prefix string = ",\"ArchetypeTwo\":" - out.RawString(prefix) - out.String(string(in.ArchetypeTwo)) - } - { - const prefix string = ",\"RelativeID\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeID)) - } - { - const prefix string = ",\"RelativeType\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeType)) - } - { - const prefix string = ",\"Notes\":" - out.RawString(prefix) - out.String(string(in.Notes)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in *jlexer.Lexer, out *structs.CollegePlayerStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "CollegePlayerID": - out.CollegePlayerID = int(in.Int()) - case "GameID": - out.GameID = int(in.Int()) - case "WeekID": - out.WeekID = int(in.Int()) - case "SeasonID": - out.SeasonID = int(in.Int()) - case "OpposingTeam": - out.OpposingTeam = string(in.String()) - case "Year": - out.Year = int(in.Int()) - case "IsRedshirt": - out.IsRedshirt = bool(in.Bool()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassAttempts": - out.PassAttempts = int(in.Int()) - case "PassCompletions": - out.PassCompletions = int(in.Int()) - case "PassingTDs": - out.PassingTDs = int(in.Int()) - case "Interceptions": - out.Interceptions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "Sacks": - out.Sacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingTDs": - out.RushingTDs = int(in.Int()) - case "Fumbles": - out.Fumbles = int(in.Int()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "Targets": - out.Targets = int(in.Int()) - case "Catches": - out.Catches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "ReceivingTDs": - out.ReceivingTDs = int(in.Int()) - case "LongestReception": - out.LongestReception = int(in.Int()) - case "SoloTackles": - out.SoloTackles = float64(in.Float64()) - case "AssistedTackles": - out.AssistedTackles = float64(in.Float64()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "SacksMade": - out.SacksMade = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "RecoveredFumbles": - out.RecoveredFumbles = int(in.Int()) - case "PassDeflections": - out.PassDeflections = int(in.Int()) - case "InterceptionsCaught": - out.InterceptionsCaught = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "FGMade": - out.FGMade = int(in.Int()) - case "FGAttempts": - out.FGAttempts = int(in.Int()) - case "LongestFG": - out.LongestFG = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "KickoffTouchbacks": - out.KickoffTouchbacks = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "GrossPuntDistance": - out.GrossPuntDistance = int(in.Int()) - case "NetPuntDistance": - out.NetPuntDistance = int(in.Int()) - case "PuntTouchbacks": - out.PuntTouchbacks = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "KickReturns": - out.KickReturns = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "PuntReturns": - out.PuntReturns = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "STSoloTackles": - out.STSoloTackles = float64(in.Float64()) - case "STAssistedTackles": - out.STAssistedTackles = float64(in.Float64()) - case "PuntsBlocked": - out.PuntsBlocked = int(in.Int()) - case "FGBlocked": - out.FGBlocked = int(in.Int()) - case "Snaps": - out.Snaps = int(in.Int()) - case "Pancakes": - out.Pancakes = int(in.Int()) - case "SacksAllowed": - out.SacksAllowed = int(in.Int()) - case "PlayedGame": - out.PlayedGame = int(in.Int()) - case "StartedGame": - out.StartedGame = int(in.Int()) - case "WasInjured": - out.WasInjured = bool(in.Bool()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out *jwriter.Writer, in structs.CollegePlayerStats) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"CollegePlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.CollegePlayerID)) - } - { - const prefix string = ",\"GameID\":" - out.RawString(prefix) - out.Int(int(in.GameID)) - } - { - const prefix string = ",\"WeekID\":" - out.RawString(prefix) - out.Int(int(in.WeekID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Int(int(in.SeasonID)) - } - { - const prefix string = ",\"OpposingTeam\":" - out.RawString(prefix) - out.String(string(in.OpposingTeam)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Int(int(in.Year)) - } - { - const prefix string = ",\"IsRedshirt\":" - out.RawString(prefix) - out.Bool(bool(in.IsRedshirt)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassAttempts)) - } - { - const prefix string = ",\"PassCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassCompletions)) - } - { - const prefix string = ",\"PassingTDs\":" - out.RawString(prefix) - out.Int(int(in.PassingTDs)) - } - { - const prefix string = ",\"Interceptions\":" - out.RawString(prefix) - out.Int(int(in.Interceptions)) - } - { - const prefix string = ",\"LongestPass\":" - out.RawString(prefix) - out.Int(int(in.LongestPass)) - } - { - const prefix string = ",\"Sacks\":" - out.RawString(prefix) - out.Int(int(in.Sacks)) - } - { - const prefix string = ",\"RushAttempts\":" - out.RawString(prefix) - out.Int(int(in.RushAttempts)) - } - { - const prefix string = ",\"RushingYards\":" - out.RawString(prefix) - out.Int(int(in.RushingYards)) - } - { - const prefix string = ",\"RushingTDs\":" - out.RawString(prefix) - out.Int(int(in.RushingTDs)) - } - { - const prefix string = ",\"Fumbles\":" - out.RawString(prefix) - out.Int(int(in.Fumbles)) - } - { - const prefix string = ",\"LongestRush\":" - out.RawString(prefix) - out.Int(int(in.LongestRush)) - } - { - const prefix string = ",\"Targets\":" - out.RawString(prefix) - out.Int(int(in.Targets)) - } - { - const prefix string = ",\"Catches\":" - out.RawString(prefix) - out.Int(int(in.Catches)) - } - { - const prefix string = ",\"ReceivingYards\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYards)) - } - { - const prefix string = ",\"ReceivingTDs\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDs)) - } - { - const prefix string = ",\"LongestReception\":" - out.RawString(prefix) - out.Int(int(in.LongestReception)) - } - { - const prefix string = ",\"SoloTackles\":" - out.RawString(prefix) - out.Float64(float64(in.SoloTackles)) - } - { - const prefix string = ",\"AssistedTackles\":" - out.RawString(prefix) - out.Float64(float64(in.AssistedTackles)) - } - { - const prefix string = ",\"TacklesForLoss\":" - out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) - } - { - const prefix string = ",\"SacksMade\":" - out.RawString(prefix) - out.Float64(float64(in.SacksMade)) - } - { - const prefix string = ",\"ForcedFumbles\":" - out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) - } - { - const prefix string = ",\"RecoveredFumbles\":" - out.RawString(prefix) - out.Int(int(in.RecoveredFumbles)) - } - { - const prefix string = ",\"PassDeflections\":" - out.RawString(prefix) - out.Int(int(in.PassDeflections)) - } - { - const prefix string = ",\"InterceptionsCaught\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsCaught)) - } - { - const prefix string = ",\"Safeties\":" - out.RawString(prefix) - out.Int(int(in.Safeties)) - } - { - const prefix string = ",\"DefensiveTDs\":" - out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) - } - { - const prefix string = ",\"FGMade\":" - out.RawString(prefix) - out.Int(int(in.FGMade)) - } - { - const prefix string = ",\"FGAttempts\":" - out.RawString(prefix) - out.Int(int(in.FGAttempts)) - } - { - const prefix string = ",\"LongestFG\":" - out.RawString(prefix) - out.Int(int(in.LongestFG)) - } - { - const prefix string = ",\"ExtraPointsMade\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) - } - { - const prefix string = ",\"ExtraPointsAttempted\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) - } - { - const prefix string = ",\"KickoffTouchbacks\":" - out.RawString(prefix) - out.Int(int(in.KickoffTouchbacks)) - } - { - const prefix string = ",\"Punts\":" - out.RawString(prefix) - out.Int(int(in.Punts)) - } - { - const prefix string = ",\"GrossPuntDistance\":" - out.RawString(prefix) - out.Int(int(in.GrossPuntDistance)) - } - { - const prefix string = ",\"NetPuntDistance\":" - out.RawString(prefix) - out.Int(int(in.NetPuntDistance)) - } - { - const prefix string = ",\"PuntTouchbacks\":" - out.RawString(prefix) - out.Int(int(in.PuntTouchbacks)) - } - { - const prefix string = ",\"PuntsInside20\":" - out.RawString(prefix) - out.Int(int(in.PuntsInside20)) - } - { - const prefix string = ",\"KickReturns\":" - out.RawString(prefix) - out.Int(int(in.KickReturns)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"PuntReturns\":" - out.RawString(prefix) - out.Int(int(in.PuntReturns)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"STSoloTackles\":" - out.RawString(prefix) - out.Float64(float64(in.STSoloTackles)) - } - { - const prefix string = ",\"STAssistedTackles\":" - out.RawString(prefix) - out.Float64(float64(in.STAssistedTackles)) - } - { - const prefix string = ",\"PuntsBlocked\":" - out.RawString(prefix) - out.Int(int(in.PuntsBlocked)) - } - { - const prefix string = ",\"FGBlocked\":" - out.RawString(prefix) - out.Int(int(in.FGBlocked)) - } - { - const prefix string = ",\"Snaps\":" - out.RawString(prefix) - out.Int(int(in.Snaps)) - } - { - const prefix string = ",\"Pancakes\":" - out.RawString(prefix) - out.Int(int(in.Pancakes)) - } - { - const prefix string = ",\"SacksAllowed\":" - out.RawString(prefix) - out.Int(int(in.SacksAllowed)) - } - { - const prefix string = ",\"PlayedGame\":" - out.RawString(prefix) - out.Int(int(in.PlayedGame)) - } - { - const prefix string = ",\"StartedGame\":" - out.RawString(prefix) - out.Int(int(in.StartedGame)) - } - { - const prefix string = ",\"WasInjured\":" - out.RawString(prefix) - out.Bool(bool(in.WasInjured)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs2(in *jlexer.Lexer, out *structs.FlexComparisonModel) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamOneID": - out.TeamOneID = uint(in.Uint()) - case "TeamOne": - out.TeamOne = string(in.String()) - case "TeamOneWins": - out.TeamOneWins = uint(in.Uint()) - case "TeamOneLosses": - out.TeamOneLosses = uint(in.Uint()) - case "TeamOneStreak": - out.TeamOneStreak = uint(in.Uint()) - case "TeamOneMSeason": - out.TeamOneMSeason = int(in.Int()) - case "TeamOneMScore": - out.TeamOneMScore = string(in.String()) - case "TeamTwoID": - out.TeamTwoID = uint(in.Uint()) - case "TeamTwo": - out.TeamTwo = string(in.String()) - case "TeamTwoWins": - out.TeamTwoWins = uint(in.Uint()) - case "TeamTwoLosses": - out.TeamTwoLosses = uint(in.Uint()) - case "TeamTwoStreak": - out.TeamTwoStreak = uint(in.Uint()) - case "TeamTwoMSeason": - out.TeamTwoMSeason = int(in.Int()) - case "TeamTwoMScore": - out.TeamTwoMScore = string(in.String()) - case "CurrentStreak": - out.CurrentStreak = uint(in.Uint()) - case "LatestWin": - out.LatestWin = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs2(out *jwriter.Writer, in structs.FlexComparisonModel) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamOneID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamOneID)) - } - { - const prefix string = ",\"TeamOne\":" - out.RawString(prefix) - out.String(string(in.TeamOne)) - } - { - const prefix string = ",\"TeamOneWins\":" - out.RawString(prefix) - out.Uint(uint(in.TeamOneWins)) - } - { - const prefix string = ",\"TeamOneLosses\":" - out.RawString(prefix) - out.Uint(uint(in.TeamOneLosses)) - } - { - const prefix string = ",\"TeamOneStreak\":" - out.RawString(prefix) - out.Uint(uint(in.TeamOneStreak)) - } - { - const prefix string = ",\"TeamOneMSeason\":" - out.RawString(prefix) - out.Int(int(in.TeamOneMSeason)) - } - { - const prefix string = ",\"TeamOneMScore\":" - out.RawString(prefix) - out.String(string(in.TeamOneMScore)) - } - { - const prefix string = ",\"TeamTwoID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamTwoID)) - } - { - const prefix string = ",\"TeamTwo\":" - out.RawString(prefix) - out.String(string(in.TeamTwo)) - } - { - const prefix string = ",\"TeamTwoWins\":" - out.RawString(prefix) - out.Uint(uint(in.TeamTwoWins)) - } - { - const prefix string = ",\"TeamTwoLosses\":" - out.RawString(prefix) - out.Uint(uint(in.TeamTwoLosses)) - } - { - const prefix string = ",\"TeamTwoStreak\":" - out.RawString(prefix) - out.Uint(uint(in.TeamTwoStreak)) - } - { - const prefix string = ",\"TeamTwoMSeason\":" - out.RawString(prefix) - out.Int(int(in.TeamTwoMSeason)) - } - { - const prefix string = ",\"TeamTwoMScore\":" - out.RawString(prefix) - out.String(string(in.TeamTwoMScore)) - } - { - const prefix string = ",\"CurrentStreak\":" - out.RawString(prefix) - out.Uint(uint(in.CurrentStreak)) - } - { - const prefix string = ",\"LatestWin\":" - out.RawString(prefix) - out.String(string(in.LatestWin)) - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in *jlexer.Lexer, out *structs.CollegeStandings) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = int(in.Int()) - case "TeamName": - out.TeamName = string(in.String()) - case "SeasonID": - out.SeasonID = int(in.Int()) - case "Season": - out.Season = int(in.Int()) - case "LeagueID": - out.LeagueID = uint(in.Uint()) - case "LeagueName": - out.LeagueName = string(in.String()) - case "ConferenceID": - out.ConferenceID = int(in.Int()) - case "ConferenceName": - out.ConferenceName = string(in.String()) - case "DivisionID": - out.DivisionID = int(in.Int()) - case "PostSeasonStatus": - out.PostSeasonStatus = string(in.String()) - case "IsFBS": - out.IsFBS = bool(in.Bool()) - case "Rank": - out.Rank = uint(in.Uint()) - case "TotalWins": - out.TotalWins = int(in.Int()) - case "TotalLosses": - out.TotalLosses = int(in.Int()) - case "ConferenceWins": - out.ConferenceWins = int(in.Int()) - case "ConferenceLosses": - out.ConferenceLosses = int(in.Int()) - case "RankedWins": - out.RankedWins = int(in.Int()) - case "RankedLosses": - out.RankedLosses = int(in.Int()) - case "PointsFor": - out.PointsFor = int(in.Int()) - case "PointsAgainst": - out.PointsAgainst = int(in.Int()) - case "Streak": - out.Streak = int(in.Int()) - case "HomeWins": - out.HomeWins = int(in.Int()) - case "AwayWins": - out.AwayWins = int(in.Int()) - case "Coach": - out.Coach = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "TotalWinPercentage": - out.TotalWinPercentage = float32(in.Float32()) - case "ConfWinPercentage": - out.ConfWinPercentage = float32(in.Float32()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out *jwriter.Writer, in structs.CollegeStandings) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"TeamName\":" - out.RawString(prefix) - out.String(string(in.TeamName)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Int(int(in.SeasonID)) - } - { - const prefix string = ",\"Season\":" - out.RawString(prefix) - out.Int(int(in.Season)) - } - { - const prefix string = ",\"LeagueID\":" - out.RawString(prefix) - out.Uint(uint(in.LeagueID)) - } - { - const prefix string = ",\"LeagueName\":" - out.RawString(prefix) - out.String(string(in.LeagueName)) - } - { - const prefix string = ",\"ConferenceID\":" - out.RawString(prefix) - out.Int(int(in.ConferenceID)) - } - { - const prefix string = ",\"ConferenceName\":" - out.RawString(prefix) - out.String(string(in.ConferenceName)) - } - { - const prefix string = ",\"DivisionID\":" - out.RawString(prefix) - out.Int(int(in.DivisionID)) - } - { - const prefix string = ",\"PostSeasonStatus\":" - out.RawString(prefix) - out.String(string(in.PostSeasonStatus)) - } - { - const prefix string = ",\"IsFBS\":" - out.RawString(prefix) - out.Bool(bool(in.IsFBS)) - } - { - const prefix string = ",\"Rank\":" - out.RawString(prefix) - out.Uint(uint(in.Rank)) - } - { - const prefix string = ",\"TotalWins\":" - out.RawString(prefix) - out.Int(int(in.TotalWins)) - } - { - const prefix string = ",\"TotalLosses\":" - out.RawString(prefix) - out.Int(int(in.TotalLosses)) - } - { - const prefix string = ",\"ConferenceWins\":" - out.RawString(prefix) - out.Int(int(in.ConferenceWins)) - } - { - const prefix string = ",\"ConferenceLosses\":" - out.RawString(prefix) - out.Int(int(in.ConferenceLosses)) - } - { - const prefix string = ",\"RankedWins\":" - out.RawString(prefix) - out.Int(int(in.RankedWins)) - } - { - const prefix string = ",\"RankedLosses\":" - out.RawString(prefix) - out.Int(int(in.RankedLosses)) - } - { - const prefix string = ",\"PointsFor\":" - out.RawString(prefix) - out.Int(int(in.PointsFor)) - } - { - const prefix string = ",\"PointsAgainst\":" - out.RawString(prefix) - out.Int(int(in.PointsAgainst)) - } - { - const prefix string = ",\"Streak\":" - out.RawString(prefix) - out.Int(int(in.Streak)) - } - { - const prefix string = ",\"HomeWins\":" - out.RawString(prefix) - out.Int(int(in.HomeWins)) - } - { - const prefix string = ",\"AwayWins\":" - out.RawString(prefix) - out.Int(int(in.AwayWins)) - } - { - const prefix string = ",\"Coach\":" - out.RawString(prefix) - out.String(string(in.Coach)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"TotalWinPercentage\":" - out.RawString(prefix) - out.Float32(float32(in.TotalWinPercentage)) - } - { - const prefix string = ",\"ConfWinPercentage\":" - out.RawString(prefix) - out.Float32(float32(in.ConfWinPercentage)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in *jlexer.Lexer, out *structs.CollegePlayerSeasonStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "CollegePlayerID": - out.CollegePlayerID = uint(in.Uint()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Year": - out.Year = uint(in.Uint()) - case "IsRedshirt": - out.IsRedshirt = bool(in.Bool()) - case "GamesPlayed": - out.GamesPlayed = int(in.Int()) - case "QBRating": - out.QBRating = float64(in.Float64()) - case "Tackles": - out.Tackles = float64(in.Float64()) - case "RushingAvg": - out.RushingAvg = float64(in.Float64()) - case "PassingAvg": - out.PassingAvg = float64(in.Float64()) - case "ReceivingAvg": - out.ReceivingAvg = float64(in.Float64()) - case "Completion": - out.Completion = float64(in.Float64()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassAttempts": - out.PassAttempts = int(in.Int()) - case "PassCompletions": - out.PassCompletions = int(in.Int()) - case "PassingTDs": - out.PassingTDs = int(in.Int()) - case "Interceptions": - out.Interceptions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "Sacks": - out.Sacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingTDs": - out.RushingTDs = int(in.Int()) - case "Fumbles": - out.Fumbles = int(in.Int()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "Targets": - out.Targets = int(in.Int()) - case "Catches": - out.Catches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "ReceivingTDs": - out.ReceivingTDs = int(in.Int()) - case "LongestReception": - out.LongestReception = int(in.Int()) - case "SoloTackles": - out.SoloTackles = float64(in.Float64()) - case "AssistedTackles": - out.AssistedTackles = float64(in.Float64()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "SacksMade": - out.SacksMade = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "RecoveredFumbles": - out.RecoveredFumbles = int(in.Int()) - case "PassDeflections": - out.PassDeflections = int(in.Int()) - case "InterceptionsCaught": - out.InterceptionsCaught = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "FGMade": - out.FGMade = int(in.Int()) - case "FGAttempts": - out.FGAttempts = int(in.Int()) - case "LongestFG": - out.LongestFG = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "KickoffTouchbacks": - out.KickoffTouchbacks = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "GrossPuntDistance": - out.GrossPuntDistance = int(in.Int()) - case "NetPuntDistance": - out.NetPuntDistance = int(in.Int()) - case "PuntTouchbacks": - out.PuntTouchbacks = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "KickReturns": - out.KickReturns = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "PuntReturns": - out.PuntReturns = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "STSoloTackles": - out.STSoloTackles = float64(in.Float64()) - case "STAssistedTackles": - out.STAssistedTackles = float64(in.Float64()) - case "PuntsBlocked": - out.PuntsBlocked = int(in.Int()) - case "FGBlocked": - out.FGBlocked = int(in.Int()) - case "Snaps": - out.Snaps = int(in.Int()) - case "Pancakes": - out.Pancakes = int(in.Int()) - case "SacksAllowed": - out.SacksAllowed = int(in.Int()) - case "PlayedGame": - out.PlayedGame = int(in.Int()) - case "StartedGame": - out.StartedGame = int(in.Int()) - case "WasInjured": - out.WasInjured = bool(in.Bool()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out *jwriter.Writer, in structs.CollegePlayerSeasonStats) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"CollegePlayerID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.CollegePlayerID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Uint(uint(in.Year)) - } - { - const prefix string = ",\"IsRedshirt\":" - out.RawString(prefix) - out.Bool(bool(in.IsRedshirt)) - } - { - const prefix string = ",\"GamesPlayed\":" - out.RawString(prefix) - out.Int(int(in.GamesPlayed)) - } - { - const prefix string = ",\"QBRating\":" - out.RawString(prefix) - out.Float64(float64(in.QBRating)) - } - { - const prefix string = ",\"Tackles\":" - out.RawString(prefix) - out.Float64(float64(in.Tackles)) - } - { - const prefix string = ",\"RushingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.RushingAvg)) - } - { - const prefix string = ",\"PassingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.PassingAvg)) - } - { - const prefix string = ",\"ReceivingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.ReceivingAvg)) - } - { - const prefix string = ",\"Completion\":" - out.RawString(prefix) - out.Float64(float64(in.Completion)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassAttempts)) - } - { - const prefix string = ",\"PassCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassCompletions)) - } - { - const prefix string = ",\"PassingTDs\":" - out.RawString(prefix) - out.Int(int(in.PassingTDs)) - } - { - const prefix string = ",\"Interceptions\":" - out.RawString(prefix) - out.Int(int(in.Interceptions)) - } - { - const prefix string = ",\"LongestPass\":" - out.RawString(prefix) - out.Int(int(in.LongestPass)) - } - { - const prefix string = ",\"Sacks\":" - out.RawString(prefix) - out.Int(int(in.Sacks)) - } - { - const prefix string = ",\"RushAttempts\":" - out.RawString(prefix) - out.Int(int(in.RushAttempts)) - } - { - const prefix string = ",\"RushingYards\":" - out.RawString(prefix) - out.Int(int(in.RushingYards)) - } - { - const prefix string = ",\"RushingTDs\":" - out.RawString(prefix) - out.Int(int(in.RushingTDs)) - } - { - const prefix string = ",\"Fumbles\":" - out.RawString(prefix) - out.Int(int(in.Fumbles)) - } - { - const prefix string = ",\"LongestRush\":" - out.RawString(prefix) - out.Int(int(in.LongestRush)) - } - { - const prefix string = ",\"Targets\":" - out.RawString(prefix) - out.Int(int(in.Targets)) - } - { - const prefix string = ",\"Catches\":" - out.RawString(prefix) - out.Int(int(in.Catches)) - } - { - const prefix string = ",\"ReceivingYards\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYards)) - } - { - const prefix string = ",\"ReceivingTDs\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDs)) - } - { - const prefix string = ",\"LongestReception\":" - out.RawString(prefix) - out.Int(int(in.LongestReception)) - } - { - const prefix string = ",\"SoloTackles\":" - out.RawString(prefix) - out.Float64(float64(in.SoloTackles)) - } - { - const prefix string = ",\"AssistedTackles\":" - out.RawString(prefix) - out.Float64(float64(in.AssistedTackles)) - } - { - const prefix string = ",\"TacklesForLoss\":" - out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) - } - { - const prefix string = ",\"SacksMade\":" - out.RawString(prefix) - out.Float64(float64(in.SacksMade)) - } - { - const prefix string = ",\"ForcedFumbles\":" - out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) - } - { - const prefix string = ",\"RecoveredFumbles\":" - out.RawString(prefix) - out.Int(int(in.RecoveredFumbles)) - } - { - const prefix string = ",\"PassDeflections\":" - out.RawString(prefix) - out.Int(int(in.PassDeflections)) - } - { - const prefix string = ",\"InterceptionsCaught\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsCaught)) - } - { - const prefix string = ",\"Safeties\":" - out.RawString(prefix) - out.Int(int(in.Safeties)) - } - { - const prefix string = ",\"DefensiveTDs\":" - out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) - } - { - const prefix string = ",\"FGMade\":" - out.RawString(prefix) - out.Int(int(in.FGMade)) - } - { - const prefix string = ",\"FGAttempts\":" - out.RawString(prefix) - out.Int(int(in.FGAttempts)) - } - { - const prefix string = ",\"LongestFG\":" - out.RawString(prefix) - out.Int(int(in.LongestFG)) - } - { - const prefix string = ",\"ExtraPointsMade\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) - } - { - const prefix string = ",\"ExtraPointsAttempted\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) - } - { - const prefix string = ",\"KickoffTouchbacks\":" - out.RawString(prefix) - out.Int(int(in.KickoffTouchbacks)) - } - { - const prefix string = ",\"Punts\":" - out.RawString(prefix) - out.Int(int(in.Punts)) - } - { - const prefix string = ",\"GrossPuntDistance\":" - out.RawString(prefix) - out.Int(int(in.GrossPuntDistance)) - } - { - const prefix string = ",\"NetPuntDistance\":" - out.RawString(prefix) - out.Int(int(in.NetPuntDistance)) - } - { - const prefix string = ",\"PuntTouchbacks\":" - out.RawString(prefix) - out.Int(int(in.PuntTouchbacks)) - } - { - const prefix string = ",\"PuntsInside20\":" - out.RawString(prefix) - out.Int(int(in.PuntsInside20)) - } - { - const prefix string = ",\"KickReturns\":" - out.RawString(prefix) - out.Int(int(in.KickReturns)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"PuntReturns\":" - out.RawString(prefix) - out.Int(int(in.PuntReturns)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"STSoloTackles\":" - out.RawString(prefix) - out.Float64(float64(in.STSoloTackles)) - } - { - const prefix string = ",\"STAssistedTackles\":" - out.RawString(prefix) - out.Float64(float64(in.STAssistedTackles)) - } - { - const prefix string = ",\"PuntsBlocked\":" - out.RawString(prefix) - out.Int(int(in.PuntsBlocked)) - } - { - const prefix string = ",\"FGBlocked\":" - out.RawString(prefix) - out.Int(int(in.FGBlocked)) - } - { - const prefix string = ",\"Snaps\":" - out.RawString(prefix) - out.Int(int(in.Snaps)) - } - { - const prefix string = ",\"Pancakes\":" - out.RawString(prefix) - out.Int(int(in.Pancakes)) - } - { - const prefix string = ",\"SacksAllowed\":" - out.RawString(prefix) - out.Int(int(in.SacksAllowed)) - } - { - const prefix string = ",\"PlayedGame\":" - out.RawString(prefix) - out.Int(int(in.PlayedGame)) - } - { - const prefix string = ",\"StartedGame\":" - out.RawString(prefix) - out.Int(int(in.StartedGame)) - } - { - const prefix string = ",\"WasInjured\":" - out.RawString(prefix) - out.Bool(bool(in.WasInjured)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(in *jlexer.Lexer, out *BootstrapDataTwo) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "CollegeNews": - if in.IsNull() { - in.Skip() - out.CollegeNews = nil - } else { - in.Delim('[') - if out.CollegeNews == nil { - if !in.IsDelim(']') { - out.CollegeNews = make([]structs.NewsLog, 0, 0) - } else { - out.CollegeNews = []structs.NewsLog{} - } - } else { - out.CollegeNews = (out.CollegeNews)[:0] - } - for !in.IsDelim(']') { - var v18 structs.NewsLog - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v18) - out.CollegeNews = append(out.CollegeNews, v18) - in.WantComma() - } - in.Delim(']') - } - case "AllCollegeGames": - if in.IsNull() { - in.Skip() - out.AllCollegeGames = nil - } else { - in.Delim('[') - if out.AllCollegeGames == nil { - if !in.IsDelim(']') { - out.AllCollegeGames = make([]structs.CollegeGame, 0, 0) - } else { - out.AllCollegeGames = []structs.CollegeGame{} - } - } else { - out.AllCollegeGames = (out.AllCollegeGames)[:0] - } - for !in.IsDelim(']') { - var v19 structs.CollegeGame - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v19) - out.AllCollegeGames = append(out.AllCollegeGames, v19) - in.WantComma() - } - in.Delim(']') - } - case "TeamProfileMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.TeamProfileMap = make(map[string]*structs.RecruitingTeamProfile) - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v20 *structs.RecruitingTeamProfile - if in.IsNull() { - in.Skip() - v20 = nil - } else { - if v20 == nil { - v20 = new(structs.RecruitingTeamProfile) - } - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, v20) - } - (out.TeamProfileMap)[key] = v20 - in.WantComma() - } - in.Delim('}') - } - case "CollegeStandings": - if in.IsNull() { - in.Skip() - out.CollegeStandings = nil - } else { - in.Delim('[') - if out.CollegeStandings == nil { - if !in.IsDelim(']') { - out.CollegeStandings = make([]structs.CollegeStandings, 0, 0) - } else { - out.CollegeStandings = []structs.CollegeStandings{} - } - } else { - out.CollegeStandings = (out.CollegeStandings)[:0] - } - for !in.IsDelim(']') { - var v21 structs.CollegeStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v21) - out.CollegeStandings = append(out.CollegeStandings, v21) - in.WantComma() - } - in.Delim(']') - } - case "ProStandings": - if in.IsNull() { - in.Skip() - out.ProStandings = nil - } else { - in.Delim('[') - if out.ProStandings == nil { - if !in.IsDelim(']') { - out.ProStandings = make([]structs.NFLStandings, 0, 0) - } else { - out.ProStandings = []structs.NFLStandings{} - } - } else { - out.ProStandings = (out.ProStandings)[:0] - } - for !in.IsDelim(']') { - var v22 structs.NFLStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v22) - out.ProStandings = append(out.ProStandings, v22) - in.WantComma() - } - in.Delim(']') - } - case "AllProGames": - if in.IsNull() { - in.Skip() - out.AllProGames = nil - } else { - in.Delim('[') - if out.AllProGames == nil { - if !in.IsDelim(']') { - out.AllProGames = make([]structs.NFLGame, 0, 0) - } else { - out.AllProGames = []structs.NFLGame{} - } - } else { - out.AllProGames = (out.AllProGames)[:0] - } - for !in.IsDelim(']') { - var v23 structs.NFLGame - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &v23) - out.AllProGames = append(out.AllProGames, v23) - in.WantComma() - } - in.Delim(']') - } - case "CapsheetMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.CapsheetMap = make(map[uint]structs.NFLCapsheet) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v24 structs.NFLCapsheet - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v24) - (out.CapsheetMap)[key] = v24 - in.WantComma() - } - in.Delim('}') - } - case "ProRosterMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.ProRosterMap = make(map[uint][]structs.NFLPlayer) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v25 []structs.NFLPlayer - if in.IsNull() { - in.Skip() - v25 = nil - } else { - in.Delim('[') - if v25 == nil { - if !in.IsDelim(']') { - v25 = make([]structs.NFLPlayer, 0, 0) - } else { - v25 = []structs.NFLPlayer{} - } - } else { - v25 = (v25)[:0] - } - for !in.IsDelim(']') { - var v26 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v26) - v25 = append(v25, v26) - in.WantComma() - } - in.Delim(']') - } - (out.ProRosterMap)[key] = v25 - in.WantComma() - } - in.Delim('}') - } - case "RetiredPlayers": - if in.IsNull() { - in.Skip() - out.RetiredPlayers = nil - } else { - in.Delim('[') - if out.RetiredPlayers == nil { - if !in.IsDelim(']') { - out.RetiredPlayers = make([]structs.NFLRetiredPlayer, 0, 0) - } else { - out.RetiredPlayers = []structs.NFLRetiredPlayer{} - } - } else { - out.RetiredPlayers = (out.RetiredPlayers)[:0] - } - for !in.IsDelim(']') { - var v27 structs.NFLRetiredPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in, &v27) - out.RetiredPlayers = append(out.RetiredPlayers, v27) - in.WantComma() - } - in.Delim(']') - } - case "PracticeSquadPlayers": - if in.IsNull() { - in.Skip() - out.PracticeSquadPlayers = nil - } else { - in.Delim('[') - if out.PracticeSquadPlayers == nil { - if !in.IsDelim(']') { - out.PracticeSquadPlayers = make([]structs.NFLPlayer, 0, 0) - } else { - out.PracticeSquadPlayers = []structs.NFLPlayer{} - } - } else { - out.PracticeSquadPlayers = (out.PracticeSquadPlayers)[:0] - } - for !in.IsDelim(']') { - var v28 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v28) - out.PracticeSquadPlayers = append(out.PracticeSquadPlayers, v28) - in.WantComma() - } - in.Delim(']') - } - case "TopNFLPassers": - if in.IsNull() { - in.Skip() - out.TopNFLPassers = nil - } else { - in.Delim('[') - if out.TopNFLPassers == nil { - if !in.IsDelim(']') { - out.TopNFLPassers = make([]structs.NFLPlayer, 0, 0) - } else { - out.TopNFLPassers = []structs.NFLPlayer{} - } - } else { - out.TopNFLPassers = (out.TopNFLPassers)[:0] - } - for !in.IsDelim(']') { - var v29 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v29) - out.TopNFLPassers = append(out.TopNFLPassers, v29) - in.WantComma() - } - in.Delim(']') - } - case "TopNFLRushers": - if in.IsNull() { - in.Skip() - out.TopNFLRushers = nil - } else { - in.Delim('[') - if out.TopNFLRushers == nil { - if !in.IsDelim(']') { - out.TopNFLRushers = make([]structs.NFLPlayer, 0, 0) - } else { - out.TopNFLRushers = []structs.NFLPlayer{} - } - } else { - out.TopNFLRushers = (out.TopNFLRushers)[:0] - } - for !in.IsDelim(']') { - var v30 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v30) - out.TopNFLRushers = append(out.TopNFLRushers, v30) - in.WantComma() - } - in.Delim(']') - } - case "TopNFLReceivers": - if in.IsNull() { - in.Skip() - out.TopNFLReceivers = nil - } else { - in.Delim('[') - if out.TopNFLReceivers == nil { - if !in.IsDelim(']') { - out.TopNFLReceivers = make([]structs.NFLPlayer, 0, 0) - } else { - out.TopNFLReceivers = []structs.NFLPlayer{} - } - } else { - out.TopNFLReceivers = (out.TopNFLReceivers)[:0] - } - for !in.IsDelim(']') { - var v31 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v31) - out.TopNFLReceivers = append(out.TopNFLReceivers, v31) - in.WantComma() - } - in.Delim(']') - } - case "ProInjuryReport": - if in.IsNull() { - in.Skip() - out.ProInjuryReport = nil - } else { - in.Delim('[') - if out.ProInjuryReport == nil { - if !in.IsDelim(']') { - out.ProInjuryReport = make([]structs.NFLPlayer, 0, 0) - } else { - out.ProInjuryReport = []structs.NFLPlayer{} - } - } else { - out.ProInjuryReport = (out.ProInjuryReport)[:0] - } - for !in.IsDelim(']') { - var v32 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v32) - out.ProInjuryReport = append(out.ProInjuryReport, v32) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(out *jwriter.Writer, in BootstrapDataTwo) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"CollegeNews\":" - out.RawString(prefix[1:]) - if in.CollegeNews == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v33, v34 := range in.CollegeNews { - if v33 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v34) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"AllCollegeGames\":" - out.RawString(prefix) - if in.AllCollegeGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v35, v36 := range in.AllCollegeGames { - if v35 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v36) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TeamProfileMap\":" - out.RawString(prefix) - if in.TeamProfileMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v37First := true - for v37Name, v37Value := range in.TeamProfileMap { - if v37First { - v37First = false - } else { - out.RawByte(',') - } - out.String(string(v37Name)) - out.RawByte(':') - if v37Value == nil { - out.RawString("null") - } else { - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, *v37Value) - } - } - out.RawByte('}') - } - } - { - const prefix string = ",\"CollegeStandings\":" - out.RawString(prefix) - if in.CollegeStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v38, v39 := range in.CollegeStandings { - if v38 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v39) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"ProStandings\":" - out.RawString(prefix) - if in.ProStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v40, v41 := range in.ProStandings { - if v40 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v41) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"AllProGames\":" - out.RawString(prefix) - if in.AllProGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v42, v43 := range in.AllProGames { - if v42 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v43) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"CapsheetMap\":" - out.RawString(prefix) - if in.CapsheetMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v44First := true - for v44Name, v44Value := range in.CapsheetMap { - if v44First { - v44First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v44Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v44Value) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"ProRosterMap\":" - out.RawString(prefix) - if in.ProRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v45First := true - for v45Name, v45Value := range in.ProRosterMap { - if v45First { - v45First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v45Name)) - out.RawByte(':') - if v45Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v46, v47 := range v45Value { - if v46 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v47) - } - out.RawByte(']') - } - } - out.RawByte('}') - } - } - { - const prefix string = ",\"RetiredPlayers\":" - out.RawString(prefix) - if in.RetiredPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v48, v49 := range in.RetiredPlayers { - if v48 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out, v49) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"PracticeSquadPlayers\":" - out.RawString(prefix) - if in.PracticeSquadPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v50, v51 := range in.PracticeSquadPlayers { - if v50 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v51) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TopNFLPassers\":" - out.RawString(prefix) - if in.TopNFLPassers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v52, v53 := range in.TopNFLPassers { - if v52 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v53) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TopNFLRushers\":" - out.RawString(prefix) - if in.TopNFLRushers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v54, v55 := range in.TopNFLRushers { - if v54 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v55) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TopNFLReceivers\":" - out.RawString(prefix) - if in.TopNFLReceivers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v56, v57 := range in.TopNFLReceivers { - if v56 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v57) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"ProInjuryReport\":" - out.RawString(prefix) - if in.ProInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v58, v59 := range in.ProInjuryReport { - if v58 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v59) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v BootstrapDataTwo) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v BootstrapDataTwo) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *BootstrapDataTwo) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *BootstrapDataTwo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(l, v) -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in *jlexer.Lexer, out *structs.NFLRetiredPlayer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "TeamID": - out.TeamID = int(in.Int()) - case "CollegeID": - out.CollegeID = uint(in.Uint()) - case "College": - out.College = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "Experience": - out.Experience = uint(in.Uint()) - case "HighSchool": - out.HighSchool = string(in.String()) - case "Hometown": - out.Hometown = string(in.String()) - case "State": - out.State = string(in.String()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsPracticeSquad": - out.IsPracticeSquad = bool(in.Bool()) - case "IsFreeAgent": - out.IsFreeAgent = bool(in.Bool()) - case "IsWaived": - out.IsWaived = bool(in.Bool()) - case "IsOnTradeBlock": - out.IsOnTradeBlock = bool(in.Bool()) - case "IsAcceptingOffers": - out.IsAcceptingOffers = bool(in.Bool()) - case "IsNegotiating": - out.IsNegotiating = bool(in.Bool()) - case "NegotiationRound": - out.NegotiationRound = uint(in.Uint()) - case "SigningRound": - out.SigningRound = uint(in.Uint()) - case "MinimumValue": - out.MinimumValue = float64(in.Float64()) - case "AAV": - out.AAV = float64(in.Float64()) - case "DraftedTeamID": - out.DraftedTeamID = uint(in.Uint()) - case "DraftedTeam": - out.DraftedTeam = string(in.String()) - case "DraftedRound": - out.DraftedRound = uint(in.Uint()) - case "DraftPickID": - out.DraftPickID = uint(in.Uint()) - case "DraftedPick": - out.DraftedPick = uint(in.Uint()) - case "ShowLetterGrade": - out.ShowLetterGrade = bool(in.Bool()) - case "HasProgressed": - out.HasProgressed = bool(in.Bool()) - case "Rejections": - out.Rejections = int(in.Int()) - case "ProBowls": - out.ProBowls = uint8(in.Uint8()) - case "TagType": - out.TagType = uint8(in.Uint8()) - case "Stats": - if in.IsNull() { - in.Skip() - out.Stats = nil - } else { - in.Delim('[') - if out.Stats == nil { - if !in.IsDelim(']') { - out.Stats = make([]structs.NFLPlayerStats, 0, 0) - } else { - out.Stats = []structs.NFLPlayerStats{} - } - } else { - out.Stats = (out.Stats)[:0] - } - for !in.IsDelim(']') { - var v60 structs.NFLPlayerStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v60) - out.Stats = append(out.Stats, v60) - in.WantComma() - } - in.Delim(']') - } - case "SeasonStats": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &out.SeasonStats) - case "Contract": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &out.Contract) - case "Offers": - if in.IsNull() { - in.Skip() - out.Offers = nil - } else { - in.Delim('[') - if out.Offers == nil { - if !in.IsDelim(']') { - out.Offers = make([]structs.FreeAgencyOffer, 0, 0) - } else { - out.Offers = []structs.FreeAgencyOffer{} - } - } else { - out.Offers = (out.Offers)[:0] - } - for !in.IsDelim(']') { - var v61 structs.FreeAgencyOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v61) - out.Offers = append(out.Offers, v61) - in.WantComma() - } - in.Delim(']') - } - case "WaiverOffers": - if in.IsNull() { - in.Skip() - out.WaiverOffers = nil - } else { - in.Delim('[') - if out.WaiverOffers == nil { - if !in.IsDelim(']') { - out.WaiverOffers = make([]structs.NFLWaiverOffer, 0, 1) - } else { - out.WaiverOffers = []structs.NFLWaiverOffer{} - } - } else { - out.WaiverOffers = (out.WaiverOffers)[:0] - } - for !in.IsDelim(']') { - var v62 structs.NFLWaiverOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v62) - out.WaiverOffers = append(out.WaiverOffers, v62) - in.WantComma() - } - in.Delim(']') - } - case "Extensions": - if in.IsNull() { - in.Skip() - out.Extensions = nil - } else { - in.Delim('[') - if out.Extensions == nil { - if !in.IsDelim(']') { - out.Extensions = make([]structs.NFLExtensionOffer, 0, 0) - } else { - out.Extensions = []structs.NFLExtensionOffer{} - } - } else { - out.Extensions = (out.Extensions)[:0] - } - for !in.IsDelim(']') { - var v63 structs.NFLExtensionOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v63) - out.Extensions = append(out.Extensions, v63) - in.WantComma() - } - in.Delim(']') - } - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "Position": - out.Position = string(in.String()) - case "Archetype": - out.Archetype = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "Height": - out.Height = int(in.Int()) - case "Weight": - out.Weight = int(in.Int()) - case "Age": - out.Age = int(in.Int()) - case "Stars": - out.Stars = int(in.Int()) - case "Overall": - out.Overall = int(in.Int()) - case "Stamina": - out.Stamina = int(in.Int()) - case "Injury": - out.Injury = int(in.Int()) - case "FootballIQ": - out.FootballIQ = int(in.Int()) - case "Speed": - out.Speed = int(in.Int()) - case "Carrying": - out.Carrying = int(in.Int()) - case "Agility": - out.Agility = int(in.Int()) - case "Catching": - out.Catching = int(in.Int()) - case "RouteRunning": - out.RouteRunning = int(in.Int()) - case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) - case "ManCoverage": - out.ManCoverage = int(in.Int()) - case "Strength": - out.Strength = int(in.Int()) - case "Tackle": - out.Tackle = int(in.Int()) - case "PassBlock": - out.PassBlock = int(in.Int()) - case "RunBlock": - out.RunBlock = int(in.Int()) - case "PassRush": - out.PassRush = int(in.Int()) - case "RunDefense": - out.RunDefense = int(in.Int()) - case "ThrowPower": - out.ThrowPower = int(in.Int()) - case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) - case "KickAccuracy": - out.KickAccuracy = int(in.Int()) - case "KickPower": - out.KickPower = int(in.Int()) - case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) - case "PuntPower": - out.PuntPower = int(in.Int()) - case "Progression": - out.Progression = int(in.Int()) - case "Discipline": - out.Discipline = int(in.Int()) - case "PotentialGrade": - out.PotentialGrade = string(in.String()) - case "FreeAgency": - out.FreeAgency = string(in.String()) - case "Personality": - out.Personality = string(in.String()) - case "RecruitingBias": - out.RecruitingBias = string(in.String()) - case "WorkEthic": - out.WorkEthic = string(in.String()) - case "AcademicBias": - out.AcademicBias = string(in.String()) - case "IsInjured": - out.IsInjured = bool(in.Bool()) - case "InjuryName": - out.InjuryName = string(in.String()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryReserve": - out.InjuryReserve = bool(in.Bool()) - case "PrimeAge": - out.PrimeAge = uint(in.Uint()) - case "Clutch": - out.Clutch = int(in.Int()) - case "Shotgun": - out.Shotgun = int(in.Int()) - case "PositionTwo": - out.PositionTwo = string(in.String()) - case "ArchetypeTwo": - out.ArchetypeTwo = string(in.String()) - case "RelativeID": - out.RelativeID = uint(in.Uint()) - case "RelativeType": - out.RelativeType = uint(in.Uint()) - case "Notes": - out.Notes = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out *jwriter.Writer, in structs.NFLRetiredPlayer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"CollegeID\":" - out.RawString(prefix) - out.Uint(uint(in.CollegeID)) - } - { - const prefix string = ",\"College\":" - out.RawString(prefix) - out.String(string(in.College)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"Experience\":" - out.RawString(prefix) - out.Uint(uint(in.Experience)) - } - { - const prefix string = ",\"HighSchool\":" - out.RawString(prefix) - out.String(string(in.HighSchool)) - } - { - const prefix string = ",\"Hometown\":" - out.RawString(prefix) - out.String(string(in.Hometown)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - { - const prefix string = ",\"IsPracticeSquad\":" - out.RawString(prefix) - out.Bool(bool(in.IsPracticeSquad)) - } - { - const prefix string = ",\"IsFreeAgent\":" - out.RawString(prefix) - out.Bool(bool(in.IsFreeAgent)) - } - { - const prefix string = ",\"IsWaived\":" - out.RawString(prefix) - out.Bool(bool(in.IsWaived)) - } - { - const prefix string = ",\"IsOnTradeBlock\":" - out.RawString(prefix) - out.Bool(bool(in.IsOnTradeBlock)) - } - { - const prefix string = ",\"IsAcceptingOffers\":" - out.RawString(prefix) - out.Bool(bool(in.IsAcceptingOffers)) - } - { - const prefix string = ",\"IsNegotiating\":" - out.RawString(prefix) - out.Bool(bool(in.IsNegotiating)) - } - { - const prefix string = ",\"NegotiationRound\":" - out.RawString(prefix) - out.Uint(uint(in.NegotiationRound)) - } - { - const prefix string = ",\"SigningRound\":" - out.RawString(prefix) - out.Uint(uint(in.SigningRound)) - } - { - const prefix string = ",\"MinimumValue\":" - out.RawString(prefix) - out.Float64(float64(in.MinimumValue)) - } - { - const prefix string = ",\"AAV\":" - out.RawString(prefix) - out.Float64(float64(in.AAV)) - } - { - const prefix string = ",\"DraftedTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedTeamID)) - } - { - const prefix string = ",\"DraftedTeam\":" - out.RawString(prefix) - out.String(string(in.DraftedTeam)) - } - { - const prefix string = ",\"DraftedRound\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedRound)) - } - { - const prefix string = ",\"DraftPickID\":" - out.RawString(prefix) - out.Uint(uint(in.DraftPickID)) - } - { - const prefix string = ",\"DraftedPick\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedPick)) - } - { - const prefix string = ",\"ShowLetterGrade\":" - out.RawString(prefix) - out.Bool(bool(in.ShowLetterGrade)) - } - { - const prefix string = ",\"HasProgressed\":" - out.RawString(prefix) - out.Bool(bool(in.HasProgressed)) - } - { - const prefix string = ",\"Rejections\":" - out.RawString(prefix) - out.Int(int(in.Rejections)) - } - { - const prefix string = ",\"ProBowls\":" - out.RawString(prefix) - out.Uint8(uint8(in.ProBowls)) - } - { - const prefix string = ",\"TagType\":" - out.RawString(prefix) - out.Uint8(uint8(in.TagType)) - } - { - const prefix string = ",\"Stats\":" - out.RawString(prefix) - if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v64, v65 := range in.Stats { - if v64 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v65) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"SeasonStats\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, in.SeasonStats) - } - { - const prefix string = ",\"Contract\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, in.Contract) - } - { - const prefix string = ",\"Offers\":" - out.RawString(prefix) - if in.Offers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v66, v67 := range in.Offers { - if v66 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v67) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"WaiverOffers\":" - out.RawString(prefix) - if in.WaiverOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v68, v69 := range in.WaiverOffers { - if v68 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v69) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"Extensions\":" - out.RawString(prefix) - if in.Extensions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v70, v71 := range in.Extensions { - if v70 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v71) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"Archetype\":" - out.RawString(prefix) - out.String(string(in.Archetype)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"Height\":" - out.RawString(prefix) - out.Int(int(in.Height)) - } - { - const prefix string = ",\"Weight\":" - out.RawString(prefix) - out.Int(int(in.Weight)) - } - { - const prefix string = ",\"Age\":" - out.RawString(prefix) - out.Int(int(in.Age)) - } - { - const prefix string = ",\"Stars\":" - out.RawString(prefix) - out.Int(int(in.Stars)) - } - { - const prefix string = ",\"Overall\":" - out.RawString(prefix) - out.Int(int(in.Overall)) - } - { - const prefix string = ",\"Stamina\":" - out.RawString(prefix) - out.Int(int(in.Stamina)) - } - { - const prefix string = ",\"Injury\":" - out.RawString(prefix) - out.Int(int(in.Injury)) - } - { - const prefix string = ",\"FootballIQ\":" - out.RawString(prefix) - out.Int(int(in.FootballIQ)) - } - { - const prefix string = ",\"Speed\":" - out.RawString(prefix) - out.Int(int(in.Speed)) - } - { - const prefix string = ",\"Carrying\":" - out.RawString(prefix) - out.Int(int(in.Carrying)) - } - { - const prefix string = ",\"Agility\":" - out.RawString(prefix) - out.Int(int(in.Agility)) - } - { - const prefix string = ",\"Catching\":" - out.RawString(prefix) - out.Int(int(in.Catching)) - } - { - const prefix string = ",\"RouteRunning\":" - out.RawString(prefix) - out.Int(int(in.RouteRunning)) - } - { - const prefix string = ",\"ZoneCoverage\":" - out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) - } - { - const prefix string = ",\"ManCoverage\":" - out.RawString(prefix) - out.Int(int(in.ManCoverage)) - } - { - const prefix string = ",\"Strength\":" - out.RawString(prefix) - out.Int(int(in.Strength)) - } - { - const prefix string = ",\"Tackle\":" - out.RawString(prefix) - out.Int(int(in.Tackle)) - } - { - const prefix string = ",\"PassBlock\":" - out.RawString(prefix) - out.Int(int(in.PassBlock)) - } - { - const prefix string = ",\"RunBlock\":" - out.RawString(prefix) - out.Int(int(in.RunBlock)) - } - { - const prefix string = ",\"PassRush\":" - out.RawString(prefix) - out.Int(int(in.PassRush)) - } - { - const prefix string = ",\"RunDefense\":" - out.RawString(prefix) - out.Int(int(in.RunDefense)) - } - { - const prefix string = ",\"ThrowPower\":" - out.RawString(prefix) - out.Int(int(in.ThrowPower)) - } - { - const prefix string = ",\"ThrowAccuracy\":" - out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) - } - { - const prefix string = ",\"KickAccuracy\":" - out.RawString(prefix) - out.Int(int(in.KickAccuracy)) - } - { - const prefix string = ",\"KickPower\":" - out.RawString(prefix) - out.Int(int(in.KickPower)) - } - { - const prefix string = ",\"PuntAccuracy\":" - out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) - } - { - const prefix string = ",\"PuntPower\":" - out.RawString(prefix) - out.Int(int(in.PuntPower)) - } - { - const prefix string = ",\"Progression\":" - out.RawString(prefix) - out.Int(int(in.Progression)) - } - { - const prefix string = ",\"Discipline\":" - out.RawString(prefix) - out.Int(int(in.Discipline)) - } - { - const prefix string = ",\"PotentialGrade\":" - out.RawString(prefix) - out.String(string(in.PotentialGrade)) - } - { - const prefix string = ",\"FreeAgency\":" - out.RawString(prefix) - out.String(string(in.FreeAgency)) - } - { - const prefix string = ",\"Personality\":" - out.RawString(prefix) - out.String(string(in.Personality)) - } - { - const prefix string = ",\"RecruitingBias\":" - out.RawString(prefix) - out.String(string(in.RecruitingBias)) - } - { - const prefix string = ",\"WorkEthic\":" - out.RawString(prefix) - out.String(string(in.WorkEthic)) - } - { - const prefix string = ",\"AcademicBias\":" - out.RawString(prefix) - out.String(string(in.AcademicBias)) - } - { - const prefix string = ",\"IsInjured\":" - out.RawString(prefix) - out.Bool(bool(in.IsInjured)) - } - { - const prefix string = ",\"InjuryName\":" - out.RawString(prefix) - out.String(string(in.InjuryName)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryReserve\":" - out.RawString(prefix) - out.Bool(bool(in.InjuryReserve)) - } - { - const prefix string = ",\"PrimeAge\":" - out.RawString(prefix) - out.Uint(uint(in.PrimeAge)) - } - { - const prefix string = ",\"Clutch\":" - out.RawString(prefix) - out.Int(int(in.Clutch)) - } - { - const prefix string = ",\"Shotgun\":" - out.RawString(prefix) - out.Int(int(in.Shotgun)) - } - { - const prefix string = ",\"PositionTwo\":" - out.RawString(prefix) - out.String(string(in.PositionTwo)) - } - { - const prefix string = ",\"ArchetypeTwo\":" - out.RawString(prefix) - out.String(string(in.ArchetypeTwo)) - } - { - const prefix string = ",\"RelativeID\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeID)) - } - { - const prefix string = ",\"RelativeType\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeType)) - } - { - const prefix string = ",\"Notes\":" - out.RawString(prefix) - out.String(string(in.Notes)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in *jlexer.Lexer, out *structs.NFLExtensionOffer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "NFLPlayerID": - out.NFLPlayerID = uint(in.Uint()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "ContractLength": - out.ContractLength = int(in.Int()) - case "Y1BaseSalary": - out.Y1BaseSalary = float64(in.Float64()) - case "Y1Bonus": - out.Y1Bonus = float64(in.Float64()) - case "Y2BaseSalary": - out.Y2BaseSalary = float64(in.Float64()) - case "Y2Bonus": - out.Y2Bonus = float64(in.Float64()) - case "Y3BaseSalary": - out.Y3BaseSalary = float64(in.Float64()) - case "Y3Bonus": - out.Y3Bonus = float64(in.Float64()) - case "Y4BaseSalary": - out.Y4BaseSalary = float64(in.Float64()) - case "Y4Bonus": - out.Y4Bonus = float64(in.Float64()) - case "Y5BaseSalary": - out.Y5BaseSalary = float64(in.Float64()) - case "Y5Bonus": - out.Y5Bonus = float64(in.Float64()) - case "TotalBonus": - out.TotalBonus = float64(in.Float64()) - case "TotalSalary": - out.TotalSalary = float64(in.Float64()) - case "ContractValue": - out.ContractValue = float64(in.Float64()) - case "BonusPercentage": - out.BonusPercentage = float64(in.Float64()) - case "AAV": - out.AAV = float64(in.Float64()) - case "Rejections": - out.Rejections = int(in.Int()) - case "IsAccepted": - out.IsAccepted = bool(in.Bool()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsRejected": - out.IsRejected = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out *jwriter.Writer, in structs.NFLExtensionOffer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.NFLPlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"ContractLength\":" - out.RawString(prefix) - out.Int(int(in.ContractLength)) - } - { - const prefix string = ",\"Y1BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y1BaseSalary)) - } - { - const prefix string = ",\"Y1Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y1Bonus)) - } - { - const prefix string = ",\"Y2BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y2BaseSalary)) - } - { - const prefix string = ",\"Y2Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y2Bonus)) - } - { - const prefix string = ",\"Y3BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y3BaseSalary)) - } - { - const prefix string = ",\"Y3Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y3Bonus)) - } - { - const prefix string = ",\"Y4BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y4BaseSalary)) - } - { - const prefix string = ",\"Y4Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y4Bonus)) - } - { - const prefix string = ",\"Y5BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y5BaseSalary)) - } - { - const prefix string = ",\"Y5Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y5Bonus)) - } - { - const prefix string = ",\"TotalBonus\":" - out.RawString(prefix) - out.Float64(float64(in.TotalBonus)) - } - { - const prefix string = ",\"TotalSalary\":" - out.RawString(prefix) - out.Float64(float64(in.TotalSalary)) - } - { - const prefix string = ",\"ContractValue\":" - out.RawString(prefix) - out.Float64(float64(in.ContractValue)) - } - { - const prefix string = ",\"BonusPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.BonusPercentage)) - } - { - const prefix string = ",\"AAV\":" - out.RawString(prefix) - out.Float64(float64(in.AAV)) - } - { - const prefix string = ",\"Rejections\":" - out.RawString(prefix) - out.Int(int(in.Rejections)) - } - { - const prefix string = ",\"IsAccepted\":" - out.RawString(prefix) - out.Bool(bool(in.IsAccepted)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - { - const prefix string = ",\"IsRejected\":" - out.RawString(prefix) - out.Bool(bool(in.IsRejected)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in *jlexer.Lexer, out *structs.NFLWaiverOffer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "ID": - out.ID = uint(in.Uint()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "WaiverOrder": - out.WaiverOrder = uint(in.Uint()) - case "NFLPlayerID": - out.NFLPlayerID = uint(in.Uint()) - case "IsActive": - out.IsActive = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out *jwriter.Writer, in structs.NFLWaiverOffer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"ID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"WaiverOrder\":" - out.RawString(prefix) - out.Uint(uint(in.WaiverOrder)) - } - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix) - out.Uint(uint(in.NFLPlayerID)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in *jlexer.Lexer, out *structs.FreeAgencyOffer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "NFLPlayerID": - out.NFLPlayerID = uint(in.Uint()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "ContractLength": - out.ContractLength = int(in.Int()) - case "Y1BaseSalary": - out.Y1BaseSalary = float64(in.Float64()) - case "Y1Bonus": - out.Y1Bonus = float64(in.Float64()) - case "Y2BaseSalary": - out.Y2BaseSalary = float64(in.Float64()) - case "Y2Bonus": - out.Y2Bonus = float64(in.Float64()) - case "Y3BaseSalary": - out.Y3BaseSalary = float64(in.Float64()) - case "Y3Bonus": - out.Y3Bonus = float64(in.Float64()) - case "Y4BaseSalary": - out.Y4BaseSalary = float64(in.Float64()) - case "Y4Bonus": - out.Y4Bonus = float64(in.Float64()) - case "Y5BaseSalary": - out.Y5BaseSalary = float64(in.Float64()) - case "Y5Bonus": - out.Y5Bonus = float64(in.Float64()) - case "TotalBonus": - out.TotalBonus = float64(in.Float64()) - case "TotalSalary": - out.TotalSalary = float64(in.Float64()) - case "ContractValue": - out.ContractValue = float64(in.Float64()) - case "BonusPercentage": - out.BonusPercentage = float64(in.Float64()) - case "AAV": - out.AAV = float64(in.Float64()) - case "Syncs": - out.Syncs = uint8(in.Uint8()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsRejected": - out.IsRejected = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out *jwriter.Writer, in structs.FreeAgencyOffer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.NFLPlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"ContractLength\":" - out.RawString(prefix) - out.Int(int(in.ContractLength)) - } - { - const prefix string = ",\"Y1BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y1BaseSalary)) - } - { - const prefix string = ",\"Y1Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y1Bonus)) - } - { - const prefix string = ",\"Y2BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y2BaseSalary)) - } - { - const prefix string = ",\"Y2Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y2Bonus)) - } - { - const prefix string = ",\"Y3BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y3BaseSalary)) - } - { - const prefix string = ",\"Y3Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y3Bonus)) - } - { - const prefix string = ",\"Y4BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y4BaseSalary)) - } - { - const prefix string = ",\"Y4Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y4Bonus)) - } - { - const prefix string = ",\"Y5BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y5BaseSalary)) - } - { - const prefix string = ",\"Y5Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y5Bonus)) - } - { - const prefix string = ",\"TotalBonus\":" - out.RawString(prefix) - out.Float64(float64(in.TotalBonus)) - } - { - const prefix string = ",\"TotalSalary\":" - out.RawString(prefix) - out.Float64(float64(in.TotalSalary)) - } - { - const prefix string = ",\"ContractValue\":" - out.RawString(prefix) - out.Float64(float64(in.ContractValue)) - } - { - const prefix string = ",\"BonusPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.BonusPercentage)) - } - { - const prefix string = ",\"AAV\":" - out.RawString(prefix) - out.Float64(float64(in.AAV)) - } - { - const prefix string = ",\"Syncs\":" - out.RawString(prefix) - out.Uint8(uint8(in.Syncs)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - { - const prefix string = ",\"IsRejected\":" - out.RawString(prefix) - out.Bool(bool(in.IsRejected)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in *jlexer.Lexer, out *structs.NFLContract) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "NFLPlayerID": - out.NFLPlayerID = int(in.Int()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "OriginalTeamID": - out.OriginalTeamID = uint(in.Uint()) - case "OriginalTeam": - out.OriginalTeam = string(in.String()) - case "ContractLength": - out.ContractLength = int(in.Int()) - case "Y1BaseSalary": - out.Y1BaseSalary = float64(in.Float64()) - case "Y1Bonus": - out.Y1Bonus = float64(in.Float64()) - case "Y2BaseSalary": - out.Y2BaseSalary = float64(in.Float64()) - case "Y2Bonus": - out.Y2Bonus = float64(in.Float64()) - case "Y3BaseSalary": - out.Y3BaseSalary = float64(in.Float64()) - case "Y3Bonus": - out.Y3Bonus = float64(in.Float64()) - case "Y4BaseSalary": - out.Y4BaseSalary = float64(in.Float64()) - case "Y4Bonus": - out.Y4Bonus = float64(in.Float64()) - case "Y5BaseSalary": - out.Y5BaseSalary = float64(in.Float64()) - case "Y5Bonus": - out.Y5Bonus = float64(in.Float64()) - case "BonusPercentage": - out.BonusPercentage = float64(in.Float64()) - case "ContractType": - out.ContractType = string(in.String()) - case "ContractValue": - out.ContractValue = float64(in.Float64()) - case "SigningValue": - out.SigningValue = float64(in.Float64()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsComplete": - out.IsComplete = bool(in.Bool()) - case "IsExtended": - out.IsExtended = bool(in.Bool()) - case "HasProgressed": - out.HasProgressed = bool(in.Bool()) - case "PlayerRetired": - out.PlayerRetired = bool(in.Bool()) - case "TagType": - out.TagType = uint8(in.Uint8()) - case "IsTagged": - out.IsTagged = bool(in.Bool()) - case "IsCut": - out.IsCut = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out *jwriter.Writer, in structs.NFLContract) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix) - out.Int(int(in.NFLPlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"OriginalTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.OriginalTeamID)) - } - { - const prefix string = ",\"OriginalTeam\":" - out.RawString(prefix) - out.String(string(in.OriginalTeam)) - } - { - const prefix string = ",\"ContractLength\":" - out.RawString(prefix) - out.Int(int(in.ContractLength)) - } - { - const prefix string = ",\"Y1BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y1BaseSalary)) - } - { - const prefix string = ",\"Y1Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y1Bonus)) - } - { - const prefix string = ",\"Y2BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y2BaseSalary)) - } - { - const prefix string = ",\"Y2Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y2Bonus)) - } - { - const prefix string = ",\"Y3BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y3BaseSalary)) - } - { - const prefix string = ",\"Y3Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y3Bonus)) - } - { - const prefix string = ",\"Y4BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y4BaseSalary)) - } - { - const prefix string = ",\"Y4Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y4Bonus)) - } - { - const prefix string = ",\"Y5BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y5BaseSalary)) - } - { - const prefix string = ",\"Y5Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y5Bonus)) - } - { - const prefix string = ",\"BonusPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.BonusPercentage)) - } - { - const prefix string = ",\"ContractType\":" - out.RawString(prefix) - out.String(string(in.ContractType)) - } - { - const prefix string = ",\"ContractValue\":" - out.RawString(prefix) - out.Float64(float64(in.ContractValue)) - } - { - const prefix string = ",\"SigningValue\":" - out.RawString(prefix) - out.Float64(float64(in.SigningValue)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - { - const prefix string = ",\"IsComplete\":" - out.RawString(prefix) - out.Bool(bool(in.IsComplete)) - } - { - const prefix string = ",\"IsExtended\":" - out.RawString(prefix) - out.Bool(bool(in.IsExtended)) - } - { - const prefix string = ",\"HasProgressed\":" - out.RawString(prefix) - out.Bool(bool(in.HasProgressed)) - } - { - const prefix string = ",\"PlayerRetired\":" - out.RawString(prefix) - out.Bool(bool(in.PlayerRetired)) - } - { - const prefix string = ",\"TagType\":" - out.RawString(prefix) - out.Uint8(uint8(in.TagType)) - } - { - const prefix string = ",\"IsTagged\":" - out.RawString(prefix) - out.Bool(bool(in.IsTagged)) - } - { - const prefix string = ",\"IsCut\":" - out.RawString(prefix) - out.Bool(bool(in.IsCut)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in *jlexer.Lexer, out *structs.NFLPlayerSeasonStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "NFLPlayerID": - out.NFLPlayerID = uint(in.Uint()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Year": - out.Year = uint(in.Uint()) - case "GamesPlayed": - out.GamesPlayed = int(in.Int()) - case "QBRating": - out.QBRating = float64(in.Float64()) - case "Tackles": - out.Tackles = float64(in.Float64()) - case "RushingAvg": - out.RushingAvg = float64(in.Float64()) - case "PassingAvg": - out.PassingAvg = float64(in.Float64()) - case "ReceivingAvg": - out.ReceivingAvg = float64(in.Float64()) - case "Completion": - out.Completion = float64(in.Float64()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassAttempts": - out.PassAttempts = int(in.Int()) - case "PassCompletions": - out.PassCompletions = int(in.Int()) - case "PassingTDs": - out.PassingTDs = int(in.Int()) - case "Interceptions": - out.Interceptions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "Sacks": - out.Sacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingTDs": - out.RushingTDs = int(in.Int()) - case "Fumbles": - out.Fumbles = int(in.Int()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "Targets": - out.Targets = int(in.Int()) - case "Catches": - out.Catches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "ReceivingTDs": - out.ReceivingTDs = int(in.Int()) - case "LongestReception": - out.LongestReception = int(in.Int()) - case "SoloTackles": - out.SoloTackles = float64(in.Float64()) - case "AssistedTackles": - out.AssistedTackles = float64(in.Float64()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "SacksMade": - out.SacksMade = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "RecoveredFumbles": - out.RecoveredFumbles = int(in.Int()) - case "PassDeflections": - out.PassDeflections = int(in.Int()) - case "InterceptionsCaught": - out.InterceptionsCaught = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "FGMade": - out.FGMade = int(in.Int()) - case "FGAttempts": - out.FGAttempts = int(in.Int()) - case "LongestFG": - out.LongestFG = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "KickoffTouchbacks": - out.KickoffTouchbacks = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "GrossPuntDistance": - out.GrossPuntDistance = int(in.Int()) - case "NetPuntDistance": - out.NetPuntDistance = int(in.Int()) - case "PuntTouchbacks": - out.PuntTouchbacks = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "KickReturns": - out.KickReturns = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "PuntReturns": - out.PuntReturns = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "STSoloTackles": - out.STSoloTackles = float64(in.Float64()) - case "STAssistedTackles": - out.STAssistedTackles = float64(in.Float64()) - case "PuntsBlocked": - out.PuntsBlocked = int(in.Int()) - case "FGBlocked": - out.FGBlocked = int(in.Int()) - case "Snaps": - out.Snaps = int(in.Int()) - case "Pancakes": - out.Pancakes = int(in.Int()) - case "SacksAllowed": - out.SacksAllowed = int(in.Int()) - case "PlayedGame": - out.PlayedGame = int(in.Int()) - case "StartedGame": - out.StartedGame = int(in.Int()) - case "WasInjured": - out.WasInjured = bool(in.Bool()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out *jwriter.Writer, in structs.NFLPlayerSeasonStats) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.NFLPlayerID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Uint(uint(in.Year)) - } - { - const prefix string = ",\"GamesPlayed\":" - out.RawString(prefix) - out.Int(int(in.GamesPlayed)) - } - { - const prefix string = ",\"QBRating\":" - out.RawString(prefix) - out.Float64(float64(in.QBRating)) - } - { - const prefix string = ",\"Tackles\":" - out.RawString(prefix) - out.Float64(float64(in.Tackles)) - } - { - const prefix string = ",\"RushingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.RushingAvg)) - } - { - const prefix string = ",\"PassingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.PassingAvg)) - } - { - const prefix string = ",\"ReceivingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.ReceivingAvg)) - } - { - const prefix string = ",\"Completion\":" - out.RawString(prefix) - out.Float64(float64(in.Completion)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassAttempts)) - } - { - const prefix string = ",\"PassCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassCompletions)) - } - { - const prefix string = ",\"PassingTDs\":" - out.RawString(prefix) - out.Int(int(in.PassingTDs)) - } - { - const prefix string = ",\"Interceptions\":" - out.RawString(prefix) - out.Int(int(in.Interceptions)) - } - { - const prefix string = ",\"LongestPass\":" - out.RawString(prefix) - out.Int(int(in.LongestPass)) - } - { - const prefix string = ",\"Sacks\":" - out.RawString(prefix) - out.Int(int(in.Sacks)) - } - { - const prefix string = ",\"RushAttempts\":" - out.RawString(prefix) - out.Int(int(in.RushAttempts)) - } - { - const prefix string = ",\"RushingYards\":" - out.RawString(prefix) - out.Int(int(in.RushingYards)) - } - { - const prefix string = ",\"RushingTDs\":" - out.RawString(prefix) - out.Int(int(in.RushingTDs)) - } - { - const prefix string = ",\"Fumbles\":" - out.RawString(prefix) - out.Int(int(in.Fumbles)) - } - { - const prefix string = ",\"LongestRush\":" - out.RawString(prefix) - out.Int(int(in.LongestRush)) - } - { - const prefix string = ",\"Targets\":" - out.RawString(prefix) - out.Int(int(in.Targets)) - } - { - const prefix string = ",\"Catches\":" - out.RawString(prefix) - out.Int(int(in.Catches)) - } - { - const prefix string = ",\"ReceivingYards\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYards)) - } - { - const prefix string = ",\"ReceivingTDs\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDs)) - } - { - const prefix string = ",\"LongestReception\":" - out.RawString(prefix) - out.Int(int(in.LongestReception)) - } - { - const prefix string = ",\"SoloTackles\":" - out.RawString(prefix) - out.Float64(float64(in.SoloTackles)) - } - { - const prefix string = ",\"AssistedTackles\":" - out.RawString(prefix) - out.Float64(float64(in.AssistedTackles)) - } - { - const prefix string = ",\"TacklesForLoss\":" - out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) - } - { - const prefix string = ",\"SacksMade\":" - out.RawString(prefix) - out.Float64(float64(in.SacksMade)) - } - { - const prefix string = ",\"ForcedFumbles\":" - out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) - } - { - const prefix string = ",\"RecoveredFumbles\":" - out.RawString(prefix) - out.Int(int(in.RecoveredFumbles)) - } - { - const prefix string = ",\"PassDeflections\":" - out.RawString(prefix) - out.Int(int(in.PassDeflections)) - } - { - const prefix string = ",\"InterceptionsCaught\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsCaught)) - } - { - const prefix string = ",\"Safeties\":" - out.RawString(prefix) - out.Int(int(in.Safeties)) - } - { - const prefix string = ",\"DefensiveTDs\":" - out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) - } - { - const prefix string = ",\"FGMade\":" - out.RawString(prefix) - out.Int(int(in.FGMade)) - } - { - const prefix string = ",\"FGAttempts\":" - out.RawString(prefix) - out.Int(int(in.FGAttempts)) - } - { - const prefix string = ",\"LongestFG\":" - out.RawString(prefix) - out.Int(int(in.LongestFG)) - } - { - const prefix string = ",\"ExtraPointsMade\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) - } - { - const prefix string = ",\"ExtraPointsAttempted\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) - } - { - const prefix string = ",\"KickoffTouchbacks\":" - out.RawString(prefix) - out.Int(int(in.KickoffTouchbacks)) - } - { - const prefix string = ",\"Punts\":" - out.RawString(prefix) - out.Int(int(in.Punts)) - } - { - const prefix string = ",\"GrossPuntDistance\":" - out.RawString(prefix) - out.Int(int(in.GrossPuntDistance)) - } - { - const prefix string = ",\"NetPuntDistance\":" - out.RawString(prefix) - out.Int(int(in.NetPuntDistance)) - } - { - const prefix string = ",\"PuntTouchbacks\":" - out.RawString(prefix) - out.Int(int(in.PuntTouchbacks)) - } - { - const prefix string = ",\"PuntsInside20\":" - out.RawString(prefix) - out.Int(int(in.PuntsInside20)) - } - { - const prefix string = ",\"KickReturns\":" - out.RawString(prefix) - out.Int(int(in.KickReturns)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"PuntReturns\":" - out.RawString(prefix) - out.Int(int(in.PuntReturns)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"STSoloTackles\":" - out.RawString(prefix) - out.Float64(float64(in.STSoloTackles)) - } - { - const prefix string = ",\"STAssistedTackles\":" - out.RawString(prefix) - out.Float64(float64(in.STAssistedTackles)) - } - { - const prefix string = ",\"PuntsBlocked\":" - out.RawString(prefix) - out.Int(int(in.PuntsBlocked)) - } - { - const prefix string = ",\"FGBlocked\":" - out.RawString(prefix) - out.Int(int(in.FGBlocked)) - } - { - const prefix string = ",\"Snaps\":" - out.RawString(prefix) - out.Int(int(in.Snaps)) - } - { - const prefix string = ",\"Pancakes\":" - out.RawString(prefix) - out.Int(int(in.Pancakes)) - } - { - const prefix string = ",\"SacksAllowed\":" - out.RawString(prefix) - out.Int(int(in.SacksAllowed)) - } - { - const prefix string = ",\"PlayedGame\":" - out.RawString(prefix) - out.Int(int(in.PlayedGame)) - } - { - const prefix string = ",\"StartedGame\":" - out.RawString(prefix) - out.Int(int(in.StartedGame)) - } - { - const prefix string = ",\"WasInjured\":" - out.RawString(prefix) - out.Bool(bool(in.WasInjured)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in *jlexer.Lexer, out *structs.NFLPlayerStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "IsPreseasonGame": - out.IsPreseasonGame = bool(in.Bool()) - case "NFLPlayerID": - out.NFLPlayerID = int(in.Int()) - case "GameID": - out.GameID = int(in.Int()) - case "WeekID": - out.WeekID = int(in.Int()) - case "SeasonID": - out.SeasonID = int(in.Int()) - case "OpposingTeam": - out.OpposingTeam = string(in.String()) - case "Year": - out.Year = int(in.Int()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassAttempts": - out.PassAttempts = int(in.Int()) - case "PassCompletions": - out.PassCompletions = int(in.Int()) - case "PassingTDs": - out.PassingTDs = int(in.Int()) - case "Interceptions": - out.Interceptions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "Sacks": - out.Sacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingTDs": - out.RushingTDs = int(in.Int()) - case "Fumbles": - out.Fumbles = int(in.Int()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "Targets": - out.Targets = int(in.Int()) - case "Catches": - out.Catches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "ReceivingTDs": - out.ReceivingTDs = int(in.Int()) - case "LongestReception": - out.LongestReception = int(in.Int()) - case "SoloTackles": - out.SoloTackles = float64(in.Float64()) - case "AssistedTackles": - out.AssistedTackles = float64(in.Float64()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "SacksMade": - out.SacksMade = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "RecoveredFumbles": - out.RecoveredFumbles = int(in.Int()) - case "PassDeflections": - out.PassDeflections = int(in.Int()) - case "InterceptionsCaught": - out.InterceptionsCaught = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "FGMade": - out.FGMade = int(in.Int()) - case "FGAttempts": - out.FGAttempts = int(in.Int()) - case "LongestFG": - out.LongestFG = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "KickoffTouchbacks": - out.KickoffTouchbacks = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "GrossPuntDistance": - out.GrossPuntDistance = int(in.Int()) - case "NetPuntDistance": - out.NetPuntDistance = int(in.Int()) - case "PuntTouchbacks": - out.PuntTouchbacks = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "KickReturns": - out.KickReturns = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "PuntReturns": - out.PuntReturns = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "STSoloTackles": - out.STSoloTackles = float64(in.Float64()) - case "STAssistedTackles": - out.STAssistedTackles = float64(in.Float64()) - case "PuntsBlocked": - out.PuntsBlocked = int(in.Int()) - case "FGBlocked": - out.FGBlocked = int(in.Int()) - case "Snaps": - out.Snaps = int(in.Int()) - case "Pancakes": - out.Pancakes = int(in.Int()) - case "SacksAllowed": - out.SacksAllowed = int(in.Int()) - case "PlayedGame": - out.PlayedGame = int(in.Int()) - case "StartedGame": - out.StartedGame = int(in.Int()) - case "WasInjured": - out.WasInjured = bool(in.Bool()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out *jwriter.Writer, in structs.NFLPlayerStats) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"IsPreseasonGame\":" - out.RawString(prefix[1:]) - out.Bool(bool(in.IsPreseasonGame)) - } - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix) - out.Int(int(in.NFLPlayerID)) - } - { - const prefix string = ",\"GameID\":" - out.RawString(prefix) - out.Int(int(in.GameID)) - } - { - const prefix string = ",\"WeekID\":" - out.RawString(prefix) - out.Int(int(in.WeekID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Int(int(in.SeasonID)) - } - { - const prefix string = ",\"OpposingTeam\":" - out.RawString(prefix) - out.String(string(in.OpposingTeam)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Int(int(in.Year)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassAttempts)) - } - { - const prefix string = ",\"PassCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassCompletions)) - } - { - const prefix string = ",\"PassingTDs\":" - out.RawString(prefix) - out.Int(int(in.PassingTDs)) - } - { - const prefix string = ",\"Interceptions\":" - out.RawString(prefix) - out.Int(int(in.Interceptions)) - } - { - const prefix string = ",\"LongestPass\":" - out.RawString(prefix) - out.Int(int(in.LongestPass)) - } - { - const prefix string = ",\"Sacks\":" - out.RawString(prefix) - out.Int(int(in.Sacks)) - } - { - const prefix string = ",\"RushAttempts\":" - out.RawString(prefix) - out.Int(int(in.RushAttempts)) - } - { - const prefix string = ",\"RushingYards\":" - out.RawString(prefix) - out.Int(int(in.RushingYards)) - } - { - const prefix string = ",\"RushingTDs\":" - out.RawString(prefix) - out.Int(int(in.RushingTDs)) - } - { - const prefix string = ",\"Fumbles\":" - out.RawString(prefix) - out.Int(int(in.Fumbles)) - } - { - const prefix string = ",\"LongestRush\":" - out.RawString(prefix) - out.Int(int(in.LongestRush)) - } - { - const prefix string = ",\"Targets\":" - out.RawString(prefix) - out.Int(int(in.Targets)) - } - { - const prefix string = ",\"Catches\":" - out.RawString(prefix) - out.Int(int(in.Catches)) - } - { - const prefix string = ",\"ReceivingYards\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYards)) - } - { - const prefix string = ",\"ReceivingTDs\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDs)) - } - { - const prefix string = ",\"LongestReception\":" - out.RawString(prefix) - out.Int(int(in.LongestReception)) - } - { - const prefix string = ",\"SoloTackles\":" - out.RawString(prefix) - out.Float64(float64(in.SoloTackles)) - } - { - const prefix string = ",\"AssistedTackles\":" - out.RawString(prefix) - out.Float64(float64(in.AssistedTackles)) - } - { - const prefix string = ",\"TacklesForLoss\":" - out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) - } - { - const prefix string = ",\"SacksMade\":" - out.RawString(prefix) - out.Float64(float64(in.SacksMade)) - } - { - const prefix string = ",\"ForcedFumbles\":" - out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) - } - { - const prefix string = ",\"RecoveredFumbles\":" - out.RawString(prefix) - out.Int(int(in.RecoveredFumbles)) - } - { - const prefix string = ",\"PassDeflections\":" - out.RawString(prefix) - out.Int(int(in.PassDeflections)) - } - { - const prefix string = ",\"InterceptionsCaught\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsCaught)) - } - { - const prefix string = ",\"Safeties\":" - out.RawString(prefix) - out.Int(int(in.Safeties)) - } - { - const prefix string = ",\"DefensiveTDs\":" - out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) - } - { - const prefix string = ",\"FGMade\":" - out.RawString(prefix) - out.Int(int(in.FGMade)) - } - { - const prefix string = ",\"FGAttempts\":" - out.RawString(prefix) - out.Int(int(in.FGAttempts)) - } - { - const prefix string = ",\"LongestFG\":" - out.RawString(prefix) - out.Int(int(in.LongestFG)) - } - { - const prefix string = ",\"ExtraPointsMade\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) - } - { - const prefix string = ",\"ExtraPointsAttempted\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) - } - { - const prefix string = ",\"KickoffTouchbacks\":" - out.RawString(prefix) - out.Int(int(in.KickoffTouchbacks)) - } - { - const prefix string = ",\"Punts\":" - out.RawString(prefix) - out.Int(int(in.Punts)) - } - { - const prefix string = ",\"GrossPuntDistance\":" - out.RawString(prefix) - out.Int(int(in.GrossPuntDistance)) - } - { - const prefix string = ",\"NetPuntDistance\":" - out.RawString(prefix) - out.Int(int(in.NetPuntDistance)) - } - { - const prefix string = ",\"PuntTouchbacks\":" - out.RawString(prefix) - out.Int(int(in.PuntTouchbacks)) - } - { - const prefix string = ",\"PuntsInside20\":" - out.RawString(prefix) - out.Int(int(in.PuntsInside20)) - } - { - const prefix string = ",\"KickReturns\":" - out.RawString(prefix) - out.Int(int(in.KickReturns)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"PuntReturns\":" - out.RawString(prefix) - out.Int(int(in.PuntReturns)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"STSoloTackles\":" - out.RawString(prefix) - out.Float64(float64(in.STSoloTackles)) - } - { - const prefix string = ",\"STAssistedTackles\":" - out.RawString(prefix) - out.Float64(float64(in.STAssistedTackles)) - } - { - const prefix string = ",\"PuntsBlocked\":" - out.RawString(prefix) - out.Int(int(in.PuntsBlocked)) - } - { - const prefix string = ",\"FGBlocked\":" - out.RawString(prefix) - out.Int(int(in.FGBlocked)) - } - { - const prefix string = ",\"Snaps\":" - out.RawString(prefix) - out.Int(int(in.Snaps)) - } - { - const prefix string = ",\"Pancakes\":" - out.RawString(prefix) - out.Int(int(in.Pancakes)) - } - { - const prefix string = ",\"SacksAllowed\":" - out.RawString(prefix) - out.Int(int(in.SacksAllowed)) - } - { - const prefix string = ",\"PlayedGame\":" - out.RawString(prefix) - out.Int(int(in.PlayedGame)) - } - { - const prefix string = ",\"StartedGame\":" - out.RawString(prefix) - out.Int(int(in.StartedGame)) - } - { - const prefix string = ",\"WasInjured\":" - out.RawString(prefix) - out.Bool(bool(in.WasInjured)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in *jlexer.Lexer, out *structs.NFLPlayer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "TeamID": - out.TeamID = int(in.Int()) - case "CollegeID": - out.CollegeID = uint(in.Uint()) - case "College": - out.College = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "Experience": - out.Experience = uint(in.Uint()) - case "HighSchool": - out.HighSchool = string(in.String()) - case "Hometown": - out.Hometown = string(in.String()) - case "State": - out.State = string(in.String()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsPracticeSquad": - out.IsPracticeSquad = bool(in.Bool()) - case "IsFreeAgent": - out.IsFreeAgent = bool(in.Bool()) - case "IsWaived": - out.IsWaived = bool(in.Bool()) - case "IsOnTradeBlock": - out.IsOnTradeBlock = bool(in.Bool()) - case "IsAcceptingOffers": - out.IsAcceptingOffers = bool(in.Bool()) - case "IsNegotiating": - out.IsNegotiating = bool(in.Bool()) - case "NegotiationRound": - out.NegotiationRound = uint(in.Uint()) - case "SigningRound": - out.SigningRound = uint(in.Uint()) - case "MinimumValue": - out.MinimumValue = float64(in.Float64()) - case "AAV": - out.AAV = float64(in.Float64()) - case "DraftedTeamID": - out.DraftedTeamID = uint(in.Uint()) - case "DraftedTeam": - out.DraftedTeam = string(in.String()) - case "DraftedRound": - out.DraftedRound = uint(in.Uint()) - case "DraftPickID": - out.DraftPickID = uint(in.Uint()) - case "DraftedPick": - out.DraftedPick = uint(in.Uint()) - case "ShowLetterGrade": - out.ShowLetterGrade = bool(in.Bool()) - case "HasProgressed": - out.HasProgressed = bool(in.Bool()) - case "Rejections": - out.Rejections = int(in.Int()) - case "ProBowls": - out.ProBowls = uint8(in.Uint8()) - case "TagType": - out.TagType = uint8(in.Uint8()) - case "Stats": - if in.IsNull() { - in.Skip() - out.Stats = nil - } else { - in.Delim('[') - if out.Stats == nil { - if !in.IsDelim(']') { - out.Stats = make([]structs.NFLPlayerStats, 0, 0) - } else { - out.Stats = []structs.NFLPlayerStats{} - } - } else { - out.Stats = (out.Stats)[:0] - } - for !in.IsDelim(']') { - var v72 structs.NFLPlayerStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v72) - out.Stats = append(out.Stats, v72) - in.WantComma() - } - in.Delim(']') - } - case "SeasonStats": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &out.SeasonStats) - case "Contract": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &out.Contract) - case "Offers": - if in.IsNull() { - in.Skip() - out.Offers = nil - } else { - in.Delim('[') - if out.Offers == nil { - if !in.IsDelim(']') { - out.Offers = make([]structs.FreeAgencyOffer, 0, 0) - } else { - out.Offers = []structs.FreeAgencyOffer{} - } - } else { - out.Offers = (out.Offers)[:0] - } - for !in.IsDelim(']') { - var v73 structs.FreeAgencyOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v73) - out.Offers = append(out.Offers, v73) - in.WantComma() - } - in.Delim(']') - } - case "WaiverOffers": - if in.IsNull() { - in.Skip() - out.WaiverOffers = nil - } else { - in.Delim('[') - if out.WaiverOffers == nil { - if !in.IsDelim(']') { - out.WaiverOffers = make([]structs.NFLWaiverOffer, 0, 1) - } else { - out.WaiverOffers = []structs.NFLWaiverOffer{} - } - } else { - out.WaiverOffers = (out.WaiverOffers)[:0] - } - for !in.IsDelim(']') { - var v74 structs.NFLWaiverOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v74) - out.WaiverOffers = append(out.WaiverOffers, v74) - in.WantComma() - } - in.Delim(']') - } - case "Extensions": - if in.IsNull() { - in.Skip() - out.Extensions = nil - } else { - in.Delim('[') - if out.Extensions == nil { - if !in.IsDelim(']') { - out.Extensions = make([]structs.NFLExtensionOffer, 0, 0) - } else { - out.Extensions = []structs.NFLExtensionOffer{} - } - } else { - out.Extensions = (out.Extensions)[:0] - } - for !in.IsDelim(']') { - var v75 structs.NFLExtensionOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v75) - out.Extensions = append(out.Extensions, v75) - in.WantComma() - } - in.Delim(']') - } - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "Position": - out.Position = string(in.String()) - case "Archetype": - out.Archetype = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "Height": - out.Height = int(in.Int()) - case "Weight": - out.Weight = int(in.Int()) - case "Age": - out.Age = int(in.Int()) - case "Stars": - out.Stars = int(in.Int()) - case "Overall": - out.Overall = int(in.Int()) - case "Stamina": - out.Stamina = int(in.Int()) - case "Injury": - out.Injury = int(in.Int()) - case "FootballIQ": - out.FootballIQ = int(in.Int()) - case "Speed": - out.Speed = int(in.Int()) - case "Carrying": - out.Carrying = int(in.Int()) - case "Agility": - out.Agility = int(in.Int()) - case "Catching": - out.Catching = int(in.Int()) - case "RouteRunning": - out.RouteRunning = int(in.Int()) - case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) - case "ManCoverage": - out.ManCoverage = int(in.Int()) - case "Strength": - out.Strength = int(in.Int()) - case "Tackle": - out.Tackle = int(in.Int()) - case "PassBlock": - out.PassBlock = int(in.Int()) - case "RunBlock": - out.RunBlock = int(in.Int()) - case "PassRush": - out.PassRush = int(in.Int()) - case "RunDefense": - out.RunDefense = int(in.Int()) - case "ThrowPower": - out.ThrowPower = int(in.Int()) - case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) - case "KickAccuracy": - out.KickAccuracy = int(in.Int()) - case "KickPower": - out.KickPower = int(in.Int()) - case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) - case "PuntPower": - out.PuntPower = int(in.Int()) - case "Progression": - out.Progression = int(in.Int()) - case "Discipline": - out.Discipline = int(in.Int()) - case "PotentialGrade": - out.PotentialGrade = string(in.String()) - case "FreeAgency": - out.FreeAgency = string(in.String()) - case "Personality": - out.Personality = string(in.String()) - case "RecruitingBias": - out.RecruitingBias = string(in.String()) - case "WorkEthic": - out.WorkEthic = string(in.String()) - case "AcademicBias": - out.AcademicBias = string(in.String()) - case "IsInjured": - out.IsInjured = bool(in.Bool()) - case "InjuryName": - out.InjuryName = string(in.String()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryReserve": - out.InjuryReserve = bool(in.Bool()) - case "PrimeAge": - out.PrimeAge = uint(in.Uint()) - case "Clutch": - out.Clutch = int(in.Int()) - case "Shotgun": - out.Shotgun = int(in.Int()) - case "PositionTwo": - out.PositionTwo = string(in.String()) - case "ArchetypeTwo": - out.ArchetypeTwo = string(in.String()) - case "RelativeID": - out.RelativeID = uint(in.Uint()) - case "RelativeType": - out.RelativeType = uint(in.Uint()) - case "Notes": - out.Notes = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out *jwriter.Writer, in structs.NFLPlayer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"CollegeID\":" - out.RawString(prefix) - out.Uint(uint(in.CollegeID)) - } - { - const prefix string = ",\"College\":" - out.RawString(prefix) - out.String(string(in.College)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"Experience\":" - out.RawString(prefix) - out.Uint(uint(in.Experience)) - } - { - const prefix string = ",\"HighSchool\":" - out.RawString(prefix) - out.String(string(in.HighSchool)) - } - { - const prefix string = ",\"Hometown\":" - out.RawString(prefix) - out.String(string(in.Hometown)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - { - const prefix string = ",\"IsPracticeSquad\":" - out.RawString(prefix) - out.Bool(bool(in.IsPracticeSquad)) - } - { - const prefix string = ",\"IsFreeAgent\":" - out.RawString(prefix) - out.Bool(bool(in.IsFreeAgent)) - } - { - const prefix string = ",\"IsWaived\":" - out.RawString(prefix) - out.Bool(bool(in.IsWaived)) - } - { - const prefix string = ",\"IsOnTradeBlock\":" - out.RawString(prefix) - out.Bool(bool(in.IsOnTradeBlock)) - } - { - const prefix string = ",\"IsAcceptingOffers\":" - out.RawString(prefix) - out.Bool(bool(in.IsAcceptingOffers)) - } - { - const prefix string = ",\"IsNegotiating\":" - out.RawString(prefix) - out.Bool(bool(in.IsNegotiating)) - } - { - const prefix string = ",\"NegotiationRound\":" - out.RawString(prefix) - out.Uint(uint(in.NegotiationRound)) - } - { - const prefix string = ",\"SigningRound\":" - out.RawString(prefix) - out.Uint(uint(in.SigningRound)) - } - { - const prefix string = ",\"MinimumValue\":" - out.RawString(prefix) - out.Float64(float64(in.MinimumValue)) - } - { - const prefix string = ",\"AAV\":" - out.RawString(prefix) - out.Float64(float64(in.AAV)) - } - { - const prefix string = ",\"DraftedTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedTeamID)) - } - { - const prefix string = ",\"DraftedTeam\":" - out.RawString(prefix) - out.String(string(in.DraftedTeam)) - } - { - const prefix string = ",\"DraftedRound\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedRound)) - } - { - const prefix string = ",\"DraftPickID\":" - out.RawString(prefix) - out.Uint(uint(in.DraftPickID)) - } - { - const prefix string = ",\"DraftedPick\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedPick)) - } - { - const prefix string = ",\"ShowLetterGrade\":" - out.RawString(prefix) - out.Bool(bool(in.ShowLetterGrade)) - } - { - const prefix string = ",\"HasProgressed\":" - out.RawString(prefix) - out.Bool(bool(in.HasProgressed)) - } - { - const prefix string = ",\"Rejections\":" - out.RawString(prefix) - out.Int(int(in.Rejections)) - } - { - const prefix string = ",\"ProBowls\":" - out.RawString(prefix) - out.Uint8(uint8(in.ProBowls)) - } - { - const prefix string = ",\"TagType\":" - out.RawString(prefix) - out.Uint8(uint8(in.TagType)) - } - { - const prefix string = ",\"Stats\":" - out.RawString(prefix) - if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v76, v77 := range in.Stats { - if v76 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v77) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"SeasonStats\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, in.SeasonStats) - } - { - const prefix string = ",\"Contract\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, in.Contract) - } - { - const prefix string = ",\"Offers\":" - out.RawString(prefix) - if in.Offers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v78, v79 := range in.Offers { - if v78 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v79) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"WaiverOffers\":" - out.RawString(prefix) - if in.WaiverOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v80, v81 := range in.WaiverOffers { - if v80 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v81) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"Extensions\":" - out.RawString(prefix) - if in.Extensions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v82, v83 := range in.Extensions { - if v82 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v83) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"Archetype\":" - out.RawString(prefix) - out.String(string(in.Archetype)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"Height\":" - out.RawString(prefix) - out.Int(int(in.Height)) - } - { - const prefix string = ",\"Weight\":" - out.RawString(prefix) - out.Int(int(in.Weight)) - } - { - const prefix string = ",\"Age\":" - out.RawString(prefix) - out.Int(int(in.Age)) - } - { - const prefix string = ",\"Stars\":" - out.RawString(prefix) - out.Int(int(in.Stars)) - } - { - const prefix string = ",\"Overall\":" - out.RawString(prefix) - out.Int(int(in.Overall)) - } - { - const prefix string = ",\"Stamina\":" - out.RawString(prefix) - out.Int(int(in.Stamina)) - } - { - const prefix string = ",\"Injury\":" - out.RawString(prefix) - out.Int(int(in.Injury)) - } - { - const prefix string = ",\"FootballIQ\":" - out.RawString(prefix) - out.Int(int(in.FootballIQ)) - } - { - const prefix string = ",\"Speed\":" - out.RawString(prefix) - out.Int(int(in.Speed)) - } - { - const prefix string = ",\"Carrying\":" - out.RawString(prefix) - out.Int(int(in.Carrying)) - } - { - const prefix string = ",\"Agility\":" - out.RawString(prefix) - out.Int(int(in.Agility)) - } - { - const prefix string = ",\"Catching\":" - out.RawString(prefix) - out.Int(int(in.Catching)) - } - { - const prefix string = ",\"RouteRunning\":" - out.RawString(prefix) - out.Int(int(in.RouteRunning)) - } - { - const prefix string = ",\"ZoneCoverage\":" - out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) - } - { - const prefix string = ",\"ManCoverage\":" - out.RawString(prefix) - out.Int(int(in.ManCoverage)) - } - { - const prefix string = ",\"Strength\":" - out.RawString(prefix) - out.Int(int(in.Strength)) - } - { - const prefix string = ",\"Tackle\":" - out.RawString(prefix) - out.Int(int(in.Tackle)) - } - { - const prefix string = ",\"PassBlock\":" - out.RawString(prefix) - out.Int(int(in.PassBlock)) - } - { - const prefix string = ",\"RunBlock\":" - out.RawString(prefix) - out.Int(int(in.RunBlock)) - } - { - const prefix string = ",\"PassRush\":" - out.RawString(prefix) - out.Int(int(in.PassRush)) - } - { - const prefix string = ",\"RunDefense\":" - out.RawString(prefix) - out.Int(int(in.RunDefense)) - } - { - const prefix string = ",\"ThrowPower\":" - out.RawString(prefix) - out.Int(int(in.ThrowPower)) - } - { - const prefix string = ",\"ThrowAccuracy\":" - out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) - } - { - const prefix string = ",\"KickAccuracy\":" - out.RawString(prefix) - out.Int(int(in.KickAccuracy)) - } - { - const prefix string = ",\"KickPower\":" - out.RawString(prefix) - out.Int(int(in.KickPower)) - } - { - const prefix string = ",\"PuntAccuracy\":" - out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) - } - { - const prefix string = ",\"PuntPower\":" - out.RawString(prefix) - out.Int(int(in.PuntPower)) - } - { - const prefix string = ",\"Progression\":" - out.RawString(prefix) - out.Int(int(in.Progression)) - } - { - const prefix string = ",\"Discipline\":" - out.RawString(prefix) - out.Int(int(in.Discipline)) - } - { - const prefix string = ",\"PotentialGrade\":" - out.RawString(prefix) - out.String(string(in.PotentialGrade)) - } - { - const prefix string = ",\"FreeAgency\":" - out.RawString(prefix) - out.String(string(in.FreeAgency)) - } - { - const prefix string = ",\"Personality\":" - out.RawString(prefix) - out.String(string(in.Personality)) - } - { - const prefix string = ",\"RecruitingBias\":" - out.RawString(prefix) - out.String(string(in.RecruitingBias)) - } - { - const prefix string = ",\"WorkEthic\":" - out.RawString(prefix) - out.String(string(in.WorkEthic)) - } - { - const prefix string = ",\"AcademicBias\":" - out.RawString(prefix) - out.String(string(in.AcademicBias)) - } - { - const prefix string = ",\"IsInjured\":" - out.RawString(prefix) - out.Bool(bool(in.IsInjured)) - } - { - const prefix string = ",\"InjuryName\":" - out.RawString(prefix) - out.String(string(in.InjuryName)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryReserve\":" - out.RawString(prefix) - out.Bool(bool(in.InjuryReserve)) - } - { - const prefix string = ",\"PrimeAge\":" - out.RawString(prefix) - out.Uint(uint(in.PrimeAge)) - } - { - const prefix string = ",\"Clutch\":" - out.RawString(prefix) - out.Int(int(in.Clutch)) - } - { - const prefix string = ",\"Shotgun\":" - out.RawString(prefix) - out.Int(int(in.Shotgun)) - } - { - const prefix string = ",\"PositionTwo\":" - out.RawString(prefix) - out.String(string(in.PositionTwo)) - } - { - const prefix string = ",\"ArchetypeTwo\":" - out.RawString(prefix) - out.String(string(in.ArchetypeTwo)) - } - { - const prefix string = ",\"RelativeID\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeID)) - } - { - const prefix string = ",\"RelativeType\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeType)) - } - { - const prefix string = ",\"Notes\":" - out.RawString(prefix) - out.String(string(in.Notes)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in *jlexer.Lexer, out *structs.NFLCapsheet) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "NFLTeamID": - out.NFLTeamID = uint(in.Uint()) - case "Y1Bonus": - out.Y1Bonus = float64(in.Float64()) - case "Y1Salary": - out.Y1Salary = float64(in.Float64()) - case "Y1CapHit": - out.Y1CapHit = float64(in.Float64()) - case "Y2Bonus": - out.Y2Bonus = float64(in.Float64()) - case "Y2Salary": - out.Y2Salary = float64(in.Float64()) - case "Y2CapHit": - out.Y2CapHit = float64(in.Float64()) - case "Y3Bonus": - out.Y3Bonus = float64(in.Float64()) - case "Y3Salary": - out.Y3Salary = float64(in.Float64()) - case "Y3CapHit": - out.Y3CapHit = float64(in.Float64()) - case "Y4Bonus": - out.Y4Bonus = float64(in.Float64()) - case "Y4Salary": - out.Y4Salary = float64(in.Float64()) - case "Y4CapHit": - out.Y4CapHit = float64(in.Float64()) - case "Y5Bonus": - out.Y5Bonus = float64(in.Float64()) - case "Y5Salary": - out.Y5Salary = float64(in.Float64()) - case "Y5CapHit": - out.Y5CapHit = float64(in.Float64()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out *jwriter.Writer, in structs.NFLCapsheet) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"NFLTeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.NFLTeamID)) - } - { - const prefix string = ",\"Y1Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y1Bonus)) - } - { - const prefix string = ",\"Y1Salary\":" - out.RawString(prefix) - out.Float64(float64(in.Y1Salary)) - } - { - const prefix string = ",\"Y1CapHit\":" - out.RawString(prefix) - out.Float64(float64(in.Y1CapHit)) - } - { - const prefix string = ",\"Y2Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y2Bonus)) - } - { - const prefix string = ",\"Y2Salary\":" - out.RawString(prefix) - out.Float64(float64(in.Y2Salary)) - } - { - const prefix string = ",\"Y2CapHit\":" - out.RawString(prefix) - out.Float64(float64(in.Y2CapHit)) - } - { - const prefix string = ",\"Y3Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y3Bonus)) - } - { - const prefix string = ",\"Y3Salary\":" - out.RawString(prefix) - out.Float64(float64(in.Y3Salary)) - } - { - const prefix string = ",\"Y3CapHit\":" - out.RawString(prefix) - out.Float64(float64(in.Y3CapHit)) - } - { - const prefix string = ",\"Y4Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y4Bonus)) - } - { - const prefix string = ",\"Y4Salary\":" - out.RawString(prefix) - out.Float64(float64(in.Y4Salary)) - } - { - const prefix string = ",\"Y4CapHit\":" - out.RawString(prefix) - out.Float64(float64(in.Y4CapHit)) - } - { - const prefix string = ",\"Y5Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y5Bonus)) - } - { - const prefix string = ",\"Y5Salary\":" - out.RawString(prefix) - out.Float64(float64(in.Y5Salary)) - } - { - const prefix string = ",\"Y5CapHit\":" - out.RawString(prefix) - out.Float64(float64(in.Y5CapHit)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in *jlexer.Lexer, out *structs.NFLGame) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "WeekID": - out.WeekID = int(in.Int()) - case "Week": - out.Week = int(in.Int()) - case "SeasonID": - out.SeasonID = int(in.Int()) - case "HomeTeamID": - out.HomeTeamID = int(in.Int()) - case "HomeTeam": - out.HomeTeam = string(in.String()) - case "HomeTeamCoach": - out.HomeTeamCoach = string(in.String()) - case "HomeTeamWin": - out.HomeTeamWin = bool(in.Bool()) - case "AwayTeamID": - out.AwayTeamID = int(in.Int()) - case "AwayTeam": - out.AwayTeam = string(in.String()) - case "AwayTeamCoach": - out.AwayTeamCoach = string(in.String()) - case "AwayTeamWin": - out.AwayTeamWin = bool(in.Bool()) - case "MVP": - out.MVP = string(in.String()) - case "HomeTeamScore": - out.HomeTeamScore = int(in.Int()) - case "AwayTeamScore": - out.AwayTeamScore = int(in.Int()) - case "TimeSlot": - out.TimeSlot = string(in.String()) - case "StadiumID": - out.StadiumID = uint(in.Uint()) - case "Stadium": - out.Stadium = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "Region": - out.Region = string(in.String()) - case "LowTemp": - out.LowTemp = float64(in.Float64()) - case "HighTemp": - out.HighTemp = float64(in.Float64()) - case "GameTemp": - out.GameTemp = float64(in.Float64()) - case "Cloud": - out.Cloud = string(in.String()) - case "Precip": - out.Precip = string(in.String()) - case "WindSpeed": - out.WindSpeed = float64(in.Float64()) - case "WindCategory": - out.WindCategory = string(in.String()) - case "IsNeutral": - out.IsNeutral = bool(in.Bool()) - case "IsDomed": - out.IsDomed = bool(in.Bool()) - case "IsNightGame": - out.IsNightGame = bool(in.Bool()) - case "IsPlayoffGame": - out.IsPlayoffGame = bool(in.Bool()) - case "IsRivalryGame": - out.IsRivalryGame = bool(in.Bool()) - case "IsConference": - out.IsConference = bool(in.Bool()) - case "IsDivisional": - out.IsDivisional = bool(in.Bool()) - case "IsConferenceChampionship": - out.IsConferenceChampionship = bool(in.Bool()) - case "IsSuperBowl": - out.IsSuperBowl = bool(in.Bool()) - case "GameComplete": - out.GameComplete = bool(in.Bool()) - case "IsPreseasonGame": - out.IsPreseasonGame = bool(in.Bool()) - case "GameTitle": - out.GameTitle = string(in.String()) - case "NextGameID": - out.NextGameID = uint(in.Uint()) - case "NextGameHOA": - out.NextGameHOA = string(in.String()) - case "HomePreviousBye": - out.HomePreviousBye = bool(in.Bool()) - case "AwayPreviousBye": - out.AwayPreviousBye = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out *jwriter.Writer, in structs.NFLGame) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"WeekID\":" - out.RawString(prefix[1:]) - out.Int(int(in.WeekID)) - } - { - const prefix string = ",\"Week\":" - out.RawString(prefix) - out.Int(int(in.Week)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Int(int(in.SeasonID)) - } - { - const prefix string = ",\"HomeTeamID\":" - out.RawString(prefix) - out.Int(int(in.HomeTeamID)) - } - { - const prefix string = ",\"HomeTeam\":" - out.RawString(prefix) - out.String(string(in.HomeTeam)) - } - { - const prefix string = ",\"HomeTeamCoach\":" - out.RawString(prefix) - out.String(string(in.HomeTeamCoach)) - } - { - const prefix string = ",\"HomeTeamWin\":" - out.RawString(prefix) - out.Bool(bool(in.HomeTeamWin)) - } - { - const prefix string = ",\"AwayTeamID\":" - out.RawString(prefix) - out.Int(int(in.AwayTeamID)) - } - { - const prefix string = ",\"AwayTeam\":" - out.RawString(prefix) - out.String(string(in.AwayTeam)) - } - { - const prefix string = ",\"AwayTeamCoach\":" - out.RawString(prefix) - out.String(string(in.AwayTeamCoach)) - } - { - const prefix string = ",\"AwayTeamWin\":" - out.RawString(prefix) - out.Bool(bool(in.AwayTeamWin)) - } - { - const prefix string = ",\"MVP\":" - out.RawString(prefix) - out.String(string(in.MVP)) - } - { - const prefix string = ",\"HomeTeamScore\":" - out.RawString(prefix) - out.Int(int(in.HomeTeamScore)) - } - { - const prefix string = ",\"AwayTeamScore\":" - out.RawString(prefix) - out.Int(int(in.AwayTeamScore)) - } - { - const prefix string = ",\"TimeSlot\":" - out.RawString(prefix) - out.String(string(in.TimeSlot)) - } - { - const prefix string = ",\"StadiumID\":" - out.RawString(prefix) - out.Uint(uint(in.StadiumID)) - } - { - const prefix string = ",\"Stadium\":" - out.RawString(prefix) - out.String(string(in.Stadium)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"Region\":" - out.RawString(prefix) - out.String(string(in.Region)) - } - { - const prefix string = ",\"LowTemp\":" - out.RawString(prefix) - out.Float64(float64(in.LowTemp)) - } - { - const prefix string = ",\"HighTemp\":" - out.RawString(prefix) - out.Float64(float64(in.HighTemp)) - } - { - const prefix string = ",\"GameTemp\":" - out.RawString(prefix) - out.Float64(float64(in.GameTemp)) - } - { - const prefix string = ",\"Cloud\":" - out.RawString(prefix) - out.String(string(in.Cloud)) - } - { - const prefix string = ",\"Precip\":" - out.RawString(prefix) - out.String(string(in.Precip)) - } - { - const prefix string = ",\"WindSpeed\":" - out.RawString(prefix) - out.Float64(float64(in.WindSpeed)) - } - { - const prefix string = ",\"WindCategory\":" - out.RawString(prefix) - out.String(string(in.WindCategory)) - } - { - const prefix string = ",\"IsNeutral\":" - out.RawString(prefix) - out.Bool(bool(in.IsNeutral)) - } - { - const prefix string = ",\"IsDomed\":" - out.RawString(prefix) - out.Bool(bool(in.IsDomed)) - } - { - const prefix string = ",\"IsNightGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsNightGame)) - } - { - const prefix string = ",\"IsPlayoffGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsPlayoffGame)) - } - { - const prefix string = ",\"IsRivalryGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsRivalryGame)) - } - { - const prefix string = ",\"IsConference\":" - out.RawString(prefix) - out.Bool(bool(in.IsConference)) - } - { - const prefix string = ",\"IsDivisional\":" - out.RawString(prefix) - out.Bool(bool(in.IsDivisional)) - } - { - const prefix string = ",\"IsConferenceChampionship\":" - out.RawString(prefix) - out.Bool(bool(in.IsConferenceChampionship)) - } - { - const prefix string = ",\"IsSuperBowl\":" - out.RawString(prefix) - out.Bool(bool(in.IsSuperBowl)) - } - { - const prefix string = ",\"GameComplete\":" - out.RawString(prefix) - out.Bool(bool(in.GameComplete)) - } - { - const prefix string = ",\"IsPreseasonGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsPreseasonGame)) - } - { - const prefix string = ",\"GameTitle\":" - out.RawString(prefix) - out.String(string(in.GameTitle)) - } - { - const prefix string = ",\"NextGameID\":" - out.RawString(prefix) - out.Uint(uint(in.NextGameID)) - } - { - const prefix string = ",\"NextGameHOA\":" - out.RawString(prefix) - out.String(string(in.NextGameHOA)) - } - { - const prefix string = ",\"HomePreviousBye\":" - out.RawString(prefix) - out.Bool(bool(in.HomePreviousBye)) - } - { - const prefix string = ",\"AwayPreviousBye\":" - out.RawString(prefix) - out.Bool(bool(in.AwayPreviousBye)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in *jlexer.Lexer, out *structs.NFLStandings) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = uint(in.Uint()) - case "TeamName": - out.TeamName = string(in.String()) - case "Mascot": - out.Mascot = string(in.String()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Season": - out.Season = uint(in.Uint()) - case "LeagueID": - out.LeagueID = uint(in.Uint()) - case "LeagueName": - out.LeagueName = string(in.String()) - case "ConferenceID": - out.ConferenceID = uint(in.Uint()) - case "ConferenceName": - out.ConferenceName = string(in.String()) - case "TotalTies": - out.TotalTies = uint(in.Uint()) - case "ConferenceTies": - out.ConferenceTies = uint(in.Uint()) - case "DivisionID": - out.DivisionID = uint(in.Uint()) - case "DivisionName": - out.DivisionName = string(in.String()) - case "DivisionWins": - out.DivisionWins = uint(in.Uint()) - case "DivisionLosses": - out.DivisionLosses = uint(in.Uint()) - case "DivisionTies": - out.DivisionTies = uint(in.Uint()) - case "PostSeasonStatus": - out.PostSeasonStatus = string(in.String()) - case "TotalWins": - out.TotalWins = int(in.Int()) - case "TotalLosses": - out.TotalLosses = int(in.Int()) - case "ConferenceWins": - out.ConferenceWins = int(in.Int()) - case "ConferenceLosses": - out.ConferenceLosses = int(in.Int()) - case "RankedWins": - out.RankedWins = int(in.Int()) - case "RankedLosses": - out.RankedLosses = int(in.Int()) - case "PointsFor": - out.PointsFor = int(in.Int()) - case "PointsAgainst": - out.PointsAgainst = int(in.Int()) - case "Streak": - out.Streak = int(in.Int()) - case "HomeWins": - out.HomeWins = int(in.Int()) - case "AwayWins": - out.AwayWins = int(in.Int()) - case "Coach": - out.Coach = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "TotalWinPercentage": - out.TotalWinPercentage = float32(in.Float32()) - case "ConfWinPercentage": - out.ConfWinPercentage = float32(in.Float32()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out *jwriter.Writer, in structs.NFLStandings) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"TeamName\":" - out.RawString(prefix) - out.String(string(in.TeamName)) - } - { - const prefix string = ",\"Mascot\":" - out.RawString(prefix) - out.String(string(in.Mascot)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"Season\":" - out.RawString(prefix) - out.Uint(uint(in.Season)) - } - { - const prefix string = ",\"LeagueID\":" - out.RawString(prefix) - out.Uint(uint(in.LeagueID)) - } - { - const prefix string = ",\"LeagueName\":" - out.RawString(prefix) - out.String(string(in.LeagueName)) - } - { - const prefix string = ",\"ConferenceID\":" - out.RawString(prefix) - out.Uint(uint(in.ConferenceID)) - } - { - const prefix string = ",\"ConferenceName\":" - out.RawString(prefix) - out.String(string(in.ConferenceName)) - } - { - const prefix string = ",\"TotalTies\":" - out.RawString(prefix) - out.Uint(uint(in.TotalTies)) - } - { - const prefix string = ",\"ConferenceTies\":" - out.RawString(prefix) - out.Uint(uint(in.ConferenceTies)) - } - { - const prefix string = ",\"DivisionID\":" - out.RawString(prefix) - out.Uint(uint(in.DivisionID)) - } - { - const prefix string = ",\"DivisionName\":" - out.RawString(prefix) - out.String(string(in.DivisionName)) - } - { - const prefix string = ",\"DivisionWins\":" - out.RawString(prefix) - out.Uint(uint(in.DivisionWins)) - } - { - const prefix string = ",\"DivisionLosses\":" - out.RawString(prefix) - out.Uint(uint(in.DivisionLosses)) - } - { - const prefix string = ",\"DivisionTies\":" - out.RawString(prefix) - out.Uint(uint(in.DivisionTies)) - } - { - const prefix string = ",\"PostSeasonStatus\":" - out.RawString(prefix) - out.String(string(in.PostSeasonStatus)) - } - { - const prefix string = ",\"TotalWins\":" - out.RawString(prefix) - out.Int(int(in.TotalWins)) - } - { - const prefix string = ",\"TotalLosses\":" - out.RawString(prefix) - out.Int(int(in.TotalLosses)) - } - { - const prefix string = ",\"ConferenceWins\":" - out.RawString(prefix) - out.Int(int(in.ConferenceWins)) - } - { - const prefix string = ",\"ConferenceLosses\":" - out.RawString(prefix) - out.Int(int(in.ConferenceLosses)) - } - { - const prefix string = ",\"RankedWins\":" - out.RawString(prefix) - out.Int(int(in.RankedWins)) - } - { - const prefix string = ",\"RankedLosses\":" - out.RawString(prefix) - out.Int(int(in.RankedLosses)) - } - { - const prefix string = ",\"PointsFor\":" - out.RawString(prefix) - out.Int(int(in.PointsFor)) - } - { - const prefix string = ",\"PointsAgainst\":" - out.RawString(prefix) - out.Int(int(in.PointsAgainst)) - } - { - const prefix string = ",\"Streak\":" - out.RawString(prefix) - out.Int(int(in.Streak)) - } - { - const prefix string = ",\"HomeWins\":" - out.RawString(prefix) - out.Int(int(in.HomeWins)) - } - { - const prefix string = ",\"AwayWins\":" - out.RawString(prefix) - out.Int(int(in.AwayWins)) - } - { - const prefix string = ",\"Coach\":" - out.RawString(prefix) - out.String(string(in.Coach)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"TotalWinPercentage\":" - out.RawString(prefix) - out.Float32(float32(in.TotalWinPercentage)) - } - { - const prefix string = ",\"ConfWinPercentage\":" - out.RawString(prefix) - out.Float32(float32(in.ConfWinPercentage)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in *jlexer.Lexer, out *structs.RecruitingTeamProfile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = int(in.Int()) - case "Team": - out.Team = string(in.String()) - case "TeamAbbreviation": - out.TeamAbbreviation = string(in.String()) - case "State": - out.State = string(in.String()) - case "ScholarshipsAvailable": - out.ScholarshipsAvailable = int(in.Int()) - case "WeeklyPoints": - out.WeeklyPoints = float64(in.Float64()) - case "SpentPoints": - out.SpentPoints = float64(in.Float64()) - case "TotalCommitments": - out.TotalCommitments = int(in.Int()) - case "RecruitClassSize": - out.RecruitClassSize = int(in.Int()) - case "PortalReputation": - out.PortalReputation = int(in.Int()) - case "BaseEfficiencyScore": - out.BaseEfficiencyScore = float64(in.Float64()) - case "RecruitingEfficiencyScore": - out.RecruitingEfficiencyScore = float64(in.Float64()) - case "PreviousOverallWinPer": - out.PreviousOverallWinPer = float64(in.Float64()) - case "PreviousConferenceWinPer": - out.PreviousConferenceWinPer = float64(in.Float64()) - case "CurrentOverallWinPer": - out.CurrentOverallWinPer = float64(in.Float64()) - case "CurrentConferenceWinPer": - out.CurrentConferenceWinPer = float64(in.Float64()) - case "ESPNScore": - out.ESPNScore = float64(in.Float64()) - case "RivalsScore": - out.RivalsScore = float64(in.Float64()) - case "Rank247Score": - out.Rank247Score = float64(in.Float64()) - case "CompositeScore": - out.CompositeScore = float64(in.Float64()) - case "ThreeStars": - out.ThreeStars = uint8(in.Uint8()) - case "FourStars": - out.FourStars = uint8(in.Uint8()) - case "FiveStars": - out.FiveStars = uint8(in.Uint8()) - case "RecruitingClassRank": - out.RecruitingClassRank = int(in.Int()) - case "CaughtCheating": - out.CaughtCheating = bool(in.Bool()) - case "IsFBS": - out.IsFBS = bool(in.Bool()) - case "IsAI": - out.IsAI = bool(in.Bool()) - case "IsUserTeam": - out.IsUserTeam = bool(in.Bool()) - case "AIBehavior": - out.AIBehavior = string(in.String()) - case "AIQuality": - out.AIQuality = string(in.String()) - case "WeeksMissed": - out.WeeksMissed = int(in.Int()) - case "BattlesWon": - out.BattlesWon = int(in.Int()) - case "BattlesLost": - out.BattlesLost = int(in.Int()) - case "AIMinThreshold": - out.AIMinThreshold = int(in.Int()) - case "AIMaxThreshold": - out.AIMaxThreshold = int(in.Int()) - case "AIStarMin": - out.AIStarMin = int(in.Int()) - case "AIStarMax": - out.AIStarMax = int(in.Int()) - case "AIAutoOfferscholarships": - out.AIAutoOfferscholarships = bool(in.Bool()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "Recruiter": - out.Recruiter = string(in.String()) - case "AcademicsAffinity": - out.AcademicsAffinity = bool(in.Bool()) - case "FrontrunnerAffinity": - out.FrontrunnerAffinity = bool(in.Bool()) - case "LargeCrowdsAffinity": - out.LargeCrowdsAffinity = bool(in.Bool()) - case "ReligionAffinity": - out.ReligionAffinity = bool(in.Bool()) - case "ServiceAffinity": - out.ServiceAffinity = bool(in.Bool()) - case "SmallSchoolAffinity": - out.SmallSchoolAffinity = bool(in.Bool()) - case "SmallTownAffinity": - out.SmallTownAffinity = bool(in.Bool()) - case "BigCityAffinity": - out.BigCityAffinity = bool(in.Bool()) - case "MediaSpotlightAffinity": - out.MediaSpotlightAffinity = bool(in.Bool()) - case "RisingStarsAffinity": - out.RisingStarsAffinity = bool(in.Bool()) - case "Recruits": - if in.IsNull() { - in.Skip() - out.Recruits = nil - } else { - in.Delim('[') - if out.Recruits == nil { - if !in.IsDelim(']') { - out.Recruits = make([]structs.RecruitPlayerProfile, 0, 0) - } else { - out.Recruits = []structs.RecruitPlayerProfile{} - } - } else { - out.Recruits = (out.Recruits)[:0] - } - for !in.IsDelim(']') { - var v84 structs.RecruitPlayerProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &v84) - out.Recruits = append(out.Recruits, v84) - in.WantComma() - } - in.Delim(']') - } - case "Affinities": - if in.IsNull() { - in.Skip() - out.Affinities = nil - } else { - in.Delim('[') - if out.Affinities == nil { - if !in.IsDelim(']') { - out.Affinities = make([]structs.ProfileAffinity, 0, 0) - } else { - out.Affinities = []structs.ProfileAffinity{} - } - } else { - out.Affinities = (out.Affinities)[:0] - } - for !in.IsDelim(']') { - var v85 structs.ProfileAffinity - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v85) - out.Affinities = append(out.Affinities, v85) - in.WantComma() - } - in.Delim(']') - } - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out *jwriter.Writer, in structs.RecruitingTeamProfile) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"TeamAbbreviation\":" - out.RawString(prefix) - out.String(string(in.TeamAbbreviation)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"ScholarshipsAvailable\":" - out.RawString(prefix) - out.Int(int(in.ScholarshipsAvailable)) - } - { - const prefix string = ",\"WeeklyPoints\":" - out.RawString(prefix) - out.Float64(float64(in.WeeklyPoints)) - } - { - const prefix string = ",\"SpentPoints\":" - out.RawString(prefix) - out.Float64(float64(in.SpentPoints)) - } - { - const prefix string = ",\"TotalCommitments\":" - out.RawString(prefix) - out.Int(int(in.TotalCommitments)) - } - { - const prefix string = ",\"RecruitClassSize\":" - out.RawString(prefix) - out.Int(int(in.RecruitClassSize)) - } - { - const prefix string = ",\"PortalReputation\":" - out.RawString(prefix) - out.Int(int(in.PortalReputation)) - } - { - const prefix string = ",\"BaseEfficiencyScore\":" - out.RawString(prefix) - out.Float64(float64(in.BaseEfficiencyScore)) - } - { - const prefix string = ",\"RecruitingEfficiencyScore\":" - out.RawString(prefix) - out.Float64(float64(in.RecruitingEfficiencyScore)) - } - { - const prefix string = ",\"PreviousOverallWinPer\":" - out.RawString(prefix) - out.Float64(float64(in.PreviousOverallWinPer)) - } - { - const prefix string = ",\"PreviousConferenceWinPer\":" - out.RawString(prefix) - out.Float64(float64(in.PreviousConferenceWinPer)) - } - { - const prefix string = ",\"CurrentOverallWinPer\":" - out.RawString(prefix) - out.Float64(float64(in.CurrentOverallWinPer)) - } - { - const prefix string = ",\"CurrentConferenceWinPer\":" - out.RawString(prefix) - out.Float64(float64(in.CurrentConferenceWinPer)) - } - { - const prefix string = ",\"ESPNScore\":" - out.RawString(prefix) - out.Float64(float64(in.ESPNScore)) - } - { - const prefix string = ",\"RivalsScore\":" - out.RawString(prefix) - out.Float64(float64(in.RivalsScore)) - } - { - const prefix string = ",\"Rank247Score\":" - out.RawString(prefix) - out.Float64(float64(in.Rank247Score)) - } - { - const prefix string = ",\"CompositeScore\":" - out.RawString(prefix) - out.Float64(float64(in.CompositeScore)) - } - { - const prefix string = ",\"ThreeStars\":" - out.RawString(prefix) - out.Uint8(uint8(in.ThreeStars)) - } - { - const prefix string = ",\"FourStars\":" - out.RawString(prefix) - out.Uint8(uint8(in.FourStars)) - } - { - const prefix string = ",\"FiveStars\":" - out.RawString(prefix) - out.Uint8(uint8(in.FiveStars)) - } - { - const prefix string = ",\"RecruitingClassRank\":" - out.RawString(prefix) - out.Int(int(in.RecruitingClassRank)) - } - { - const prefix string = ",\"CaughtCheating\":" - out.RawString(prefix) - out.Bool(bool(in.CaughtCheating)) - } - { - const prefix string = ",\"IsFBS\":" - out.RawString(prefix) - out.Bool(bool(in.IsFBS)) - } - { - const prefix string = ",\"IsAI\":" - out.RawString(prefix) - out.Bool(bool(in.IsAI)) - } - { - const prefix string = ",\"IsUserTeam\":" - out.RawString(prefix) - out.Bool(bool(in.IsUserTeam)) - } - { - const prefix string = ",\"AIBehavior\":" - out.RawString(prefix) - out.String(string(in.AIBehavior)) - } - { - const prefix string = ",\"AIQuality\":" - out.RawString(prefix) - out.String(string(in.AIQuality)) - } - { - const prefix string = ",\"WeeksMissed\":" - out.RawString(prefix) - out.Int(int(in.WeeksMissed)) - } - { - const prefix string = ",\"BattlesWon\":" - out.RawString(prefix) - out.Int(int(in.BattlesWon)) - } - { - const prefix string = ",\"BattlesLost\":" - out.RawString(prefix) - out.Int(int(in.BattlesLost)) - } - { - const prefix string = ",\"AIMinThreshold\":" - out.RawString(prefix) - out.Int(int(in.AIMinThreshold)) - } - { - const prefix string = ",\"AIMaxThreshold\":" - out.RawString(prefix) - out.Int(int(in.AIMaxThreshold)) - } - { - const prefix string = ",\"AIStarMin\":" - out.RawString(prefix) - out.Int(int(in.AIStarMin)) - } - { - const prefix string = ",\"AIStarMax\":" - out.RawString(prefix) - out.Int(int(in.AIStarMax)) - } - { - const prefix string = ",\"AIAutoOfferscholarships\":" - out.RawString(prefix) - out.Bool(bool(in.AIAutoOfferscholarships)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"Recruiter\":" - out.RawString(prefix) - out.String(string(in.Recruiter)) - } - { - const prefix string = ",\"AcademicsAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.AcademicsAffinity)) - } - { - const prefix string = ",\"FrontrunnerAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.FrontrunnerAffinity)) - } - { - const prefix string = ",\"LargeCrowdsAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.LargeCrowdsAffinity)) - } - { - const prefix string = ",\"ReligionAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.ReligionAffinity)) - } - { - const prefix string = ",\"ServiceAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.ServiceAffinity)) - } - { - const prefix string = ",\"SmallSchoolAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.SmallSchoolAffinity)) - } - { - const prefix string = ",\"SmallTownAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.SmallTownAffinity)) - } - { - const prefix string = ",\"BigCityAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.BigCityAffinity)) - } - { - const prefix string = ",\"MediaSpotlightAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.MediaSpotlightAffinity)) - } - { - const prefix string = ",\"RisingStarsAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.RisingStarsAffinity)) - } - { - const prefix string = ",\"Recruits\":" - out.RawString(prefix) - if in.Recruits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v86, v87 := range in.Recruits { - if v86 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, v87) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"Affinities\":" - out.RawString(prefix) - if in.Affinities == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v88, v89 := range in.Affinities { - if v88 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v89) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in *jlexer.Lexer, out *structs.ProfileAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "AffinityID": - out.AffinityID = int(in.Int()) - case "ProfileID": - out.ProfileID = int(in.Int()) - case "AffinityName": - out.AffinityName = string(in.String()) - case "IsApplicable": - out.IsApplicable = bool(in.Bool()) - case "IsDynamicAffinity": - out.IsDynamicAffinity = bool(in.Bool()) - case "IsCheckedWeekly": - out.IsCheckedWeekly = bool(in.Bool()) - case "IsCheckedSeasonal": - out.IsCheckedSeasonal = bool(in.Bool()) - case "AffinityValue": - out.AffinityValue = float32(in.Float32()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out *jwriter.Writer, in structs.ProfileAffinity) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"AffinityID\":" - out.RawString(prefix[1:]) - out.Int(int(in.AffinityID)) - } - { - const prefix string = ",\"ProfileID\":" - out.RawString(prefix) - out.Int(int(in.ProfileID)) - } - { - const prefix string = ",\"AffinityName\":" - out.RawString(prefix) - out.String(string(in.AffinityName)) - } - { - const prefix string = ",\"IsApplicable\":" - out.RawString(prefix) - out.Bool(bool(in.IsApplicable)) - } - { - const prefix string = ",\"IsDynamicAffinity\":" - out.RawString(prefix) - out.Bool(bool(in.IsDynamicAffinity)) - } - { - const prefix string = ",\"IsCheckedWeekly\":" - out.RawString(prefix) - out.Bool(bool(in.IsCheckedWeekly)) - } - { - const prefix string = ",\"IsCheckedSeasonal\":" - out.RawString(prefix) - out.Bool(bool(in.IsCheckedSeasonal)) - } - { - const prefix string = ",\"AffinityValue\":" - out.RawString(prefix) - out.Float32(float32(in.AffinityValue)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in *jlexer.Lexer, out *structs.RecruitPlayerProfile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "SeasonID": - out.SeasonID = int(in.Int()) - case "RecruitID": - out.RecruitID = int(in.Int()) - case "ProfileID": - out.ProfileID = int(in.Int()) - case "TotalPoints": - out.TotalPoints = float64(in.Float64()) - case "CurrentWeeksPoints": - out.CurrentWeeksPoints = float64(in.Float64()) - case "PreviousWeekPoints": - out.PreviousWeekPoints = float64(in.Float64()) - case "SpendingCount": - out.SpendingCount = int(in.Int()) - case "RecruitingEfficiencyScore": - out.RecruitingEfficiencyScore = float64(in.Float64()) - case "Scholarship": - out.Scholarship = bool(in.Bool()) - case "ScholarshipRevoked": - out.ScholarshipRevoked = bool(in.Bool()) - case "AffinityOneEligible": - out.AffinityOneEligible = bool(in.Bool()) - case "AffinityTwoEligible": - out.AffinityTwoEligible = bool(in.Bool()) - case "TeamAbbreviation": - out.TeamAbbreviation = string(in.String()) - case "Recruiter": - out.Recruiter = string(in.String()) - case "RemovedFromBoard": - out.RemovedFromBoard = bool(in.Bool()) - case "IsSigned": - out.IsSigned = bool(in.Bool()) - case "IsLocked": - out.IsLocked = bool(in.Bool()) - case "CaughtCheating": - out.CaughtCheating = bool(in.Bool()) - case "TeamReachedMax": - out.TeamReachedMax = bool(in.Bool()) - case "Recruit": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &out.Recruit) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out *jwriter.Writer, in structs.RecruitPlayerProfile) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix[1:]) - out.Int(int(in.SeasonID)) - } - { - const prefix string = ",\"RecruitID\":" - out.RawString(prefix) - out.Int(int(in.RecruitID)) - } - { - const prefix string = ",\"ProfileID\":" - out.RawString(prefix) - out.Int(int(in.ProfileID)) - } - { - const prefix string = ",\"TotalPoints\":" - out.RawString(prefix) - out.Float64(float64(in.TotalPoints)) - } - { - const prefix string = ",\"CurrentWeeksPoints\":" - out.RawString(prefix) - out.Float64(float64(in.CurrentWeeksPoints)) - } - { - const prefix string = ",\"PreviousWeekPoints\":" - out.RawString(prefix) - out.Float64(float64(in.PreviousWeekPoints)) - } - { - const prefix string = ",\"SpendingCount\":" - out.RawString(prefix) - out.Int(int(in.SpendingCount)) - } - { - const prefix string = ",\"RecruitingEfficiencyScore\":" - out.RawString(prefix) - out.Float64(float64(in.RecruitingEfficiencyScore)) - } - { - const prefix string = ",\"Scholarship\":" - out.RawString(prefix) - out.Bool(bool(in.Scholarship)) - } - { - const prefix string = ",\"ScholarshipRevoked\":" - out.RawString(prefix) - out.Bool(bool(in.ScholarshipRevoked)) - } - { - const prefix string = ",\"AffinityOneEligible\":" - out.RawString(prefix) - out.Bool(bool(in.AffinityOneEligible)) - } - { - const prefix string = ",\"AffinityTwoEligible\":" - out.RawString(prefix) - out.Bool(bool(in.AffinityTwoEligible)) - } - { - const prefix string = ",\"TeamAbbreviation\":" - out.RawString(prefix) - out.String(string(in.TeamAbbreviation)) - } - { - const prefix string = ",\"Recruiter\":" - out.RawString(prefix) - out.String(string(in.Recruiter)) - } - { - const prefix string = ",\"RemovedFromBoard\":" - out.RawString(prefix) - out.Bool(bool(in.RemovedFromBoard)) - } - { - const prefix string = ",\"IsSigned\":" - out.RawString(prefix) - out.Bool(bool(in.IsSigned)) - } - { - const prefix string = ",\"IsLocked\":" - out.RawString(prefix) - out.Bool(bool(in.IsLocked)) - } - { - const prefix string = ",\"CaughtCheating\":" - out.RawString(prefix) - out.Bool(bool(in.CaughtCheating)) - } - { - const prefix string = ",\"TeamReachedMax\":" - out.RawString(prefix) - out.Bool(bool(in.TeamReachedMax)) - } - { - const prefix string = ",\"Recruit\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, in.Recruit) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in *jlexer.Lexer, out *structs.Recruit) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "TeamID": - out.TeamID = int(in.Int()) - case "HighSchool": - out.HighSchool = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "AffinityOne": - out.AffinityOne = string(in.String()) - case "AffinityTwo": - out.AffinityTwo = string(in.String()) - case "IsSigned": - out.IsSigned = bool(in.Bool()) - case "IsCustomCroot": - out.IsCustomCroot = bool(in.Bool()) - case "CustomCrootFor": - out.CustomCrootFor = string(in.String()) - case "College": - out.College = string(in.String()) - case "OverallRank": - out.OverallRank = float64(in.Float64()) - case "RivalsRank": - out.RivalsRank = float64(in.Float64()) - case "ESPNRank": - out.ESPNRank = float64(in.Float64()) - case "Rank247": - out.Rank247 = float64(in.Float64()) - case "TopRankModifier": - out.TopRankModifier = float64(in.Float64()) - case "RecruitingModifier": - out.RecruitingModifier = float64(in.Float64()) - case "RecruitingStatus": - out.RecruitingStatus = string(in.String()) - case "RecruitPlayerProfiles": - if in.IsNull() { - in.Skip() - out.RecruitPlayerProfiles = nil - } else { - in.Delim('[') - if out.RecruitPlayerProfiles == nil { - if !in.IsDelim(']') { - out.RecruitPlayerProfiles = make([]structs.RecruitPlayerProfile, 0, 0) - } else { - out.RecruitPlayerProfiles = []structs.RecruitPlayerProfile{} - } - } else { - out.RecruitPlayerProfiles = (out.RecruitPlayerProfiles)[:0] - } - for !in.IsDelim(']') { - var v90 structs.RecruitPlayerProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &v90) - out.RecruitPlayerProfiles = append(out.RecruitPlayerProfiles, v90) - in.WantComma() - } - in.Delim(']') - } - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "Position": - out.Position = string(in.String()) - case "Archetype": - out.Archetype = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "Height": - out.Height = int(in.Int()) - case "Weight": - out.Weight = int(in.Int()) - case "Age": - out.Age = int(in.Int()) - case "Stars": - out.Stars = int(in.Int()) - case "Overall": - out.Overall = int(in.Int()) - case "Stamina": - out.Stamina = int(in.Int()) - case "Injury": - out.Injury = int(in.Int()) - case "FootballIQ": - out.FootballIQ = int(in.Int()) - case "Speed": - out.Speed = int(in.Int()) - case "Carrying": - out.Carrying = int(in.Int()) - case "Agility": - out.Agility = int(in.Int()) - case "Catching": - out.Catching = int(in.Int()) - case "RouteRunning": - out.RouteRunning = int(in.Int()) - case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) - case "ManCoverage": - out.ManCoverage = int(in.Int()) - case "Strength": - out.Strength = int(in.Int()) - case "Tackle": - out.Tackle = int(in.Int()) - case "PassBlock": - out.PassBlock = int(in.Int()) - case "RunBlock": - out.RunBlock = int(in.Int()) - case "PassRush": - out.PassRush = int(in.Int()) - case "RunDefense": - out.RunDefense = int(in.Int()) - case "ThrowPower": - out.ThrowPower = int(in.Int()) - case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) - case "KickAccuracy": - out.KickAccuracy = int(in.Int()) - case "KickPower": - out.KickPower = int(in.Int()) - case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) - case "PuntPower": - out.PuntPower = int(in.Int()) - case "Progression": - out.Progression = int(in.Int()) - case "Discipline": - out.Discipline = int(in.Int()) - case "PotentialGrade": - out.PotentialGrade = string(in.String()) - case "FreeAgency": - out.FreeAgency = string(in.String()) - case "Personality": - out.Personality = string(in.String()) - case "RecruitingBias": - out.RecruitingBias = string(in.String()) - case "WorkEthic": - out.WorkEthic = string(in.String()) - case "AcademicBias": - out.AcademicBias = string(in.String()) - case "IsInjured": - out.IsInjured = bool(in.Bool()) - case "InjuryName": - out.InjuryName = string(in.String()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryReserve": - out.InjuryReserve = bool(in.Bool()) - case "PrimeAge": - out.PrimeAge = uint(in.Uint()) - case "Clutch": - out.Clutch = int(in.Int()) - case "Shotgun": - out.Shotgun = int(in.Int()) - case "PositionTwo": - out.PositionTwo = string(in.String()) - case "ArchetypeTwo": - out.ArchetypeTwo = string(in.String()) - case "RelativeID": - out.RelativeID = uint(in.Uint()) - case "RelativeType": - out.RelativeType = uint(in.Uint()) - case "Notes": - out.Notes = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out *jwriter.Writer, in structs.Recruit) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"HighSchool\":" - out.RawString(prefix) - out.String(string(in.HighSchool)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"AffinityOne\":" - out.RawString(prefix) - out.String(string(in.AffinityOne)) - } - { - const prefix string = ",\"AffinityTwo\":" - out.RawString(prefix) - out.String(string(in.AffinityTwo)) - } - { - const prefix string = ",\"IsSigned\":" - out.RawString(prefix) - out.Bool(bool(in.IsSigned)) - } - { - const prefix string = ",\"IsCustomCroot\":" - out.RawString(prefix) - out.Bool(bool(in.IsCustomCroot)) - } - { - const prefix string = ",\"CustomCrootFor\":" - out.RawString(prefix) - out.String(string(in.CustomCrootFor)) - } - { - const prefix string = ",\"College\":" - out.RawString(prefix) - out.String(string(in.College)) - } - { - const prefix string = ",\"OverallRank\":" - out.RawString(prefix) - out.Float64(float64(in.OverallRank)) - } - { - const prefix string = ",\"RivalsRank\":" - out.RawString(prefix) - out.Float64(float64(in.RivalsRank)) - } - { - const prefix string = ",\"ESPNRank\":" - out.RawString(prefix) - out.Float64(float64(in.ESPNRank)) - } - { - const prefix string = ",\"Rank247\":" - out.RawString(prefix) - out.Float64(float64(in.Rank247)) - } - { - const prefix string = ",\"TopRankModifier\":" - out.RawString(prefix) - out.Float64(float64(in.TopRankModifier)) - } - { - const prefix string = ",\"RecruitingModifier\":" - out.RawString(prefix) - out.Float64(float64(in.RecruitingModifier)) - } - { - const prefix string = ",\"RecruitingStatus\":" - out.RawString(prefix) - out.String(string(in.RecruitingStatus)) - } - { - const prefix string = ",\"RecruitPlayerProfiles\":" - out.RawString(prefix) - if in.RecruitPlayerProfiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v91, v92 := range in.RecruitPlayerProfiles { - if v91 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, v92) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"Archetype\":" - out.RawString(prefix) - out.String(string(in.Archetype)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"Height\":" - out.RawString(prefix) - out.Int(int(in.Height)) - } - { - const prefix string = ",\"Weight\":" - out.RawString(prefix) - out.Int(int(in.Weight)) - } - { - const prefix string = ",\"Age\":" - out.RawString(prefix) - out.Int(int(in.Age)) - } - { - const prefix string = ",\"Stars\":" - out.RawString(prefix) - out.Int(int(in.Stars)) - } - { - const prefix string = ",\"Overall\":" - out.RawString(prefix) - out.Int(int(in.Overall)) - } - { - const prefix string = ",\"Stamina\":" - out.RawString(prefix) - out.Int(int(in.Stamina)) - } - { - const prefix string = ",\"Injury\":" - out.RawString(prefix) - out.Int(int(in.Injury)) - } - { - const prefix string = ",\"FootballIQ\":" - out.RawString(prefix) - out.Int(int(in.FootballIQ)) - } - { - const prefix string = ",\"Speed\":" - out.RawString(prefix) - out.Int(int(in.Speed)) - } - { - const prefix string = ",\"Carrying\":" - out.RawString(prefix) - out.Int(int(in.Carrying)) - } - { - const prefix string = ",\"Agility\":" - out.RawString(prefix) - out.Int(int(in.Agility)) - } - { - const prefix string = ",\"Catching\":" - out.RawString(prefix) - out.Int(int(in.Catching)) - } - { - const prefix string = ",\"RouteRunning\":" - out.RawString(prefix) - out.Int(int(in.RouteRunning)) - } - { - const prefix string = ",\"ZoneCoverage\":" - out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) - } - { - const prefix string = ",\"ManCoverage\":" - out.RawString(prefix) - out.Int(int(in.ManCoverage)) - } - { - const prefix string = ",\"Strength\":" - out.RawString(prefix) - out.Int(int(in.Strength)) - } - { - const prefix string = ",\"Tackle\":" - out.RawString(prefix) - out.Int(int(in.Tackle)) - } - { - const prefix string = ",\"PassBlock\":" - out.RawString(prefix) - out.Int(int(in.PassBlock)) - } - { - const prefix string = ",\"RunBlock\":" - out.RawString(prefix) - out.Int(int(in.RunBlock)) - } - { - const prefix string = ",\"PassRush\":" - out.RawString(prefix) - out.Int(int(in.PassRush)) - } - { - const prefix string = ",\"RunDefense\":" - out.RawString(prefix) - out.Int(int(in.RunDefense)) - } - { - const prefix string = ",\"ThrowPower\":" - out.RawString(prefix) - out.Int(int(in.ThrowPower)) - } - { - const prefix string = ",\"ThrowAccuracy\":" - out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) - } - { - const prefix string = ",\"KickAccuracy\":" - out.RawString(prefix) - out.Int(int(in.KickAccuracy)) - } - { - const prefix string = ",\"KickPower\":" - out.RawString(prefix) - out.Int(int(in.KickPower)) - } - { - const prefix string = ",\"PuntAccuracy\":" - out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) - } - { - const prefix string = ",\"PuntPower\":" - out.RawString(prefix) - out.Int(int(in.PuntPower)) - } - { - const prefix string = ",\"Progression\":" - out.RawString(prefix) - out.Int(int(in.Progression)) - } - { - const prefix string = ",\"Discipline\":" - out.RawString(prefix) - out.Int(int(in.Discipline)) - } - { - const prefix string = ",\"PotentialGrade\":" - out.RawString(prefix) - out.String(string(in.PotentialGrade)) - } - { - const prefix string = ",\"FreeAgency\":" - out.RawString(prefix) - out.String(string(in.FreeAgency)) - } - { - const prefix string = ",\"Personality\":" - out.RawString(prefix) - out.String(string(in.Personality)) - } - { - const prefix string = ",\"RecruitingBias\":" - out.RawString(prefix) - out.String(string(in.RecruitingBias)) - } - { - const prefix string = ",\"WorkEthic\":" - out.RawString(prefix) - out.String(string(in.WorkEthic)) - } - { - const prefix string = ",\"AcademicBias\":" - out.RawString(prefix) - out.String(string(in.AcademicBias)) - } - { - const prefix string = ",\"IsInjured\":" - out.RawString(prefix) - out.Bool(bool(in.IsInjured)) - } - { - const prefix string = ",\"InjuryName\":" - out.RawString(prefix) - out.String(string(in.InjuryName)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryReserve\":" - out.RawString(prefix) - out.Bool(bool(in.InjuryReserve)) - } - { - const prefix string = ",\"PrimeAge\":" - out.RawString(prefix) - out.Uint(uint(in.PrimeAge)) - } - { - const prefix string = ",\"Clutch\":" - out.RawString(prefix) - out.Int(int(in.Clutch)) - } - { - const prefix string = ",\"Shotgun\":" - out.RawString(prefix) - out.Int(int(in.Shotgun)) - } - { - const prefix string = ",\"PositionTwo\":" - out.RawString(prefix) - out.String(string(in.PositionTwo)) - } - { - const prefix string = ",\"ArchetypeTwo\":" - out.RawString(prefix) - out.String(string(in.ArchetypeTwo)) - } - { - const prefix string = ",\"RelativeID\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeID)) - } - { - const prefix string = ",\"RelativeType\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeType)) - } - { - const prefix string = ",\"Notes\":" - out.RawString(prefix) - out.String(string(in.Notes)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, out *structs.NewsLog) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "WeekID": - out.WeekID = int(in.Int()) - case "Week": - out.Week = int(in.Int()) - case "SeasonID": - out.SeasonID = int(in.Int()) - case "TeamID": - out.TeamID = int(in.Int()) - case "MessageType": - out.MessageType = string(in.String()) - case "Message": - out.Message = string(in.String()) - case "League": - out.League = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out *jwriter.Writer, in structs.NewsLog) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"WeekID\":" - out.RawString(prefix[1:]) - out.Int(int(in.WeekID)) - } - { - const prefix string = ",\"Week\":" - out.RawString(prefix) - out.Int(int(in.Week)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Int(int(in.SeasonID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"MessageType\":" - out.RawString(prefix) - out.String(string(in.MessageType)) - } - { - const prefix string = ",\"Message\":" - out.RawString(prefix) - out.String(string(in.Message)) - } - { - const prefix string = ",\"League\":" - out.RawString(prefix) - out.String(string(in.League)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, out *BootstrapDataThree) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "Recruits": - if in.IsNull() { - in.Skip() - out.Recruits = nil - } else { - in.Delim('[') - if out.Recruits == nil { - if !in.IsDelim(']') { - out.Recruits = make([]structs.Croot, 0, 0) - } else { - out.Recruits = []structs.Croot{} - } - } else { - out.Recruits = (out.Recruits)[:0] - } - for !in.IsDelim(']') { - var v93 structs.Croot - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v93) - out.Recruits = append(out.Recruits, v93) - in.WantComma() - } - in.Delim(']') - } - case "RecruitProfiles": - if in.IsNull() { - in.Skip() - out.RecruitProfiles = nil - } else { - in.Delim('[') - if out.RecruitProfiles == nil { - if !in.IsDelim(']') { - out.RecruitProfiles = make([]structs.RecruitPlayerProfile, 0, 0) - } else { - out.RecruitProfiles = []structs.RecruitPlayerProfile{} - } - } else { - out.RecruitProfiles = (out.RecruitProfiles)[:0] - } - for !in.IsDelim(']') { - var v94 structs.RecruitPlayerProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &v94) - out.RecruitProfiles = append(out.RecruitProfiles, v94) - in.WantComma() - } - in.Delim(']') - } - case "CollegeDepthChartMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.CollegeDepthChartMap = make(map[uint]structs.CollegeTeamDepthChart) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v95 structs.CollegeTeamDepthChart - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in, &v95) - (out.CollegeDepthChartMap)[key] = v95 - in.WantComma() - } - in.Delim('}') - } - case "FreeAgentOffers": - if in.IsNull() { - in.Skip() - out.FreeAgentOffers = nil - } else { - in.Delim('[') - if out.FreeAgentOffers == nil { - if !in.IsDelim(']') { - out.FreeAgentOffers = make([]structs.FreeAgencyOffer, 0, 0) - } else { - out.FreeAgentOffers = []structs.FreeAgencyOffer{} - } - } else { - out.FreeAgentOffers = (out.FreeAgentOffers)[:0] - } - for !in.IsDelim(']') { - var v96 structs.FreeAgencyOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v96) - out.FreeAgentOffers = append(out.FreeAgentOffers, v96) - in.WantComma() - } - in.Delim(']') - } - case "WaiverWireOffers": - if in.IsNull() { - in.Skip() - out.WaiverWireOffers = nil - } else { - in.Delim('[') - if out.WaiverWireOffers == nil { - if !in.IsDelim(']') { - out.WaiverWireOffers = make([]structs.NFLWaiverOffer, 0, 1) - } else { - out.WaiverWireOffers = []structs.NFLWaiverOffer{} - } - } else { - out.WaiverWireOffers = (out.WaiverWireOffers)[:0] - } - for !in.IsDelim(']') { - var v97 structs.NFLWaiverOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v97) - out.WaiverWireOffers = append(out.WaiverWireOffers, v97) - in.WantComma() - } - in.Delim(']') - } - case "FreeAgents": - if in.IsNull() { - in.Skip() - out.FreeAgents = nil - } else { - in.Delim('[') - if out.FreeAgents == nil { - if !in.IsDelim(']') { - out.FreeAgents = make([]structs.NFLPlayer, 0, 0) - } else { - out.FreeAgents = []structs.NFLPlayer{} - } - } else { - out.FreeAgents = (out.FreeAgents)[:0] - } - for !in.IsDelim(']') { - var v98 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v98) - out.FreeAgents = append(out.FreeAgents, v98) - in.WantComma() - } - in.Delim(']') - } - case "WaiverPlayers": - if in.IsNull() { - in.Skip() - out.WaiverPlayers = nil - } else { - in.Delim('[') - if out.WaiverPlayers == nil { - if !in.IsDelim(']') { - out.WaiverPlayers = make([]structs.NFLPlayer, 0, 0) - } else { - out.WaiverPlayers = []structs.NFLPlayer{} - } - } else { - out.WaiverPlayers = (out.WaiverPlayers)[:0] - } - for !in.IsDelim(']') { - var v99 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v99) - out.WaiverPlayers = append(out.WaiverPlayers, v99) - in.WantComma() - } - in.Delim(']') - } - case "NFLDraftees": - if in.IsNull() { - in.Skip() - out.NFLDraftees = nil - } else { - in.Delim('[') - if out.NFLDraftees == nil { - if !in.IsDelim(']') { - out.NFLDraftees = make([]models.NFLDraftee, 0, 0) - } else { - out.NFLDraftees = []models.NFLDraftee{} - } - } else { - out.NFLDraftees = (out.NFLDraftees)[:0] - } - for !in.IsDelim(']') { - var v100 models.NFLDraftee - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in, &v100) - out.NFLDraftees = append(out.NFLDraftees, v100) - in.WantComma() - } - in.Delim(']') - } - case "ProNews": - if in.IsNull() { - in.Skip() - out.ProNews = nil - } else { - in.Delim('[') - if out.ProNews == nil { - if !in.IsDelim(']') { - out.ProNews = make([]structs.NewsLog, 0, 0) - } else { - out.ProNews = []structs.NewsLog{} - } - } else { - out.ProNews = (out.ProNews)[:0] - } - for !in.IsDelim(']') { - var v101 structs.NewsLog - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v101) - out.ProNews = append(out.ProNews, v101) - in.WantComma() - } - in.Delim(']') - } - case "NFLDepthChartMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.NFLDepthChartMap = make(map[uint]structs.NFLDepthChart) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v102 structs.NFLDepthChart - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, &v102) - (out.NFLDepthChartMap)[key] = v102 - in.WantComma() - } - in.Delim('}') - } - case "ContractMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.ContractMap = make(map[uint]structs.NFLContract) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v103 structs.NFLContract - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v103) - (out.ContractMap)[key] = v103 - in.WantComma() - } - in.Delim('}') - } - case "ExtensionMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.ExtensionMap = make(map[uint]structs.NFLExtensionOffer) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v104 structs.NFLExtensionOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v104) - (out.ExtensionMap)[key] = v104 - in.WantComma() - } - in.Delim('}') - } - case "FaceData": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.FaceData = make(map[uint]structs.FaceDataResponse) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v105 structs.FaceDataResponse - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &v105) - (out.FaceData)[key] = v105 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer, in BootstrapDataThree) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"Recruits\":" - out.RawString(prefix[1:]) - if in.Recruits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v106, v107 := range in.Recruits { - if v106 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v107) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"RecruitProfiles\":" - out.RawString(prefix) - if in.RecruitProfiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v108, v109 := range in.RecruitProfiles { - if v108 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, v109) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"CollegeDepthChartMap\":" - out.RawString(prefix) - if in.CollegeDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v110First := true - for v110Name, v110Value := range in.CollegeDepthChartMap { - if v110First { - v110First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v110Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out, v110Value) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"FreeAgentOffers\":" - out.RawString(prefix) - if in.FreeAgentOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v111, v112 := range in.FreeAgentOffers { - if v111 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v112) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"WaiverWireOffers\":" - out.RawString(prefix) - if in.WaiverWireOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v113, v114 := range in.WaiverWireOffers { - if v113 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v114) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"FreeAgents\":" - out.RawString(prefix) - if in.FreeAgents == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v115, v116 := range in.FreeAgents { - if v115 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v116) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"WaiverPlayers\":" - out.RawString(prefix) - if in.WaiverPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v117, v118 := range in.WaiverPlayers { - if v117 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v118) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"NFLDraftees\":" - out.RawString(prefix) - if in.NFLDraftees == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v119, v120 := range in.NFLDraftees { - if v119 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out, v120) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"ProNews\":" - out.RawString(prefix) - if in.ProNews == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v121, v122 := range in.ProNews { - if v121 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v122) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"NFLDepthChartMap\":" - out.RawString(prefix) - if in.NFLDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v123First := true - for v123Name, v123Value := range in.NFLDepthChartMap { - if v123First { - v123First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v123Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, v123Value) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"ContractMap\":" - out.RawString(prefix) - if in.ContractMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v124First := true - for v124Name, v124Value := range in.ContractMap { - if v124First { - v124First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v124Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v124Value) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"ExtensionMap\":" - out.RawString(prefix) - if in.ExtensionMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v125First := true - for v125Name, v125Value := range in.ExtensionMap { - if v125First { - v125First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v125Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v125Value) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"FaceData\":" - out.RawString(prefix) - if in.FaceData == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v126First := true - for v126Name, v126Value := range in.FaceData { - if v126First { - v126First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v126Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, v126Value) - } - out.RawByte('}') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v BootstrapDataThree) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v BootstrapDataThree) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *BootstrapDataThree) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *BootstrapDataThree) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(l, v) -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in *jlexer.Lexer, out *structs.FaceDataResponse) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = uint(in.Uint()) - case "Accessories": - out.Accessories = string(in.String()) - case "Body": - out.Body = string(in.String()) - case "Ear": - out.Ear = string(in.String()) - case "Eye": - out.Eye = string(in.String()) - case "EyeLine": - out.EyeLine = string(in.String()) - case "Eyebrow": - out.Eyebrow = string(in.String()) - case "FacialHair": - out.FacialHair = string(in.String()) - case "Glasses": - out.Glasses = string(in.String()) - case "Hair": - out.Hair = string(in.String()) - case "HairBG": - out.HairBG = string(in.String()) - case "HairFlip": - out.HairFlip = bool(in.Bool()) - case "Head": - out.Head = string(in.String()) - case "Jersey": - out.Jersey = string(in.String()) - case "MiscLine": - out.MiscLine = string(in.String()) - case "Mouth": - out.Mouth = string(in.String()) - case "MouthFlip": - out.MouthFlip = bool(in.Bool()) - case "Nose": - out.Nose = string(in.String()) - case "NoseFlip": - out.NoseFlip = bool(in.Bool()) - case "SmileLine": - out.SmileLine = string(in.String()) - case "BodySize": - out.BodySize = float32(in.Float32()) - case "EarSize": - out.EarSize = float32(in.Float32()) - case "EyeAngle": - out.EyeAngle = int8(in.Int8()) - case "EyeBrowAngle": - out.EyeBrowAngle = int8(in.Int8()) - case "FaceSize": - out.FaceSize = float32(in.Float32()) - case "FacialHairShave": - out.FacialHairShave = string(in.String()) - case "NoseSize": - out.NoseSize = float32(in.Float32()) - case "SmileLineSize": - out.SmileLineSize = float32(in.Float32()) - case "SkinColor": - out.SkinColor = string(in.String()) - case "HairColor": - out.HairColor = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out *jwriter.Writer, in structs.FaceDataResponse) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.PlayerID)) - } - { - const prefix string = ",\"Accessories\":" - out.RawString(prefix) - out.String(string(in.Accessories)) - } - { - const prefix string = ",\"Body\":" - out.RawString(prefix) - out.String(string(in.Body)) - } - { - const prefix string = ",\"Ear\":" - out.RawString(prefix) - out.String(string(in.Ear)) - } - { - const prefix string = ",\"Eye\":" - out.RawString(prefix) - out.String(string(in.Eye)) - } - { - const prefix string = ",\"EyeLine\":" - out.RawString(prefix) - out.String(string(in.EyeLine)) - } - { - const prefix string = ",\"Eyebrow\":" - out.RawString(prefix) - out.String(string(in.Eyebrow)) - } - { - const prefix string = ",\"FacialHair\":" - out.RawString(prefix) - out.String(string(in.FacialHair)) - } - { - const prefix string = ",\"Glasses\":" - out.RawString(prefix) - out.String(string(in.Glasses)) - } - { - const prefix string = ",\"Hair\":" - out.RawString(prefix) - out.String(string(in.Hair)) - } - { - const prefix string = ",\"HairBG\":" - out.RawString(prefix) - out.String(string(in.HairBG)) - } - { - const prefix string = ",\"HairFlip\":" - out.RawString(prefix) - out.Bool(bool(in.HairFlip)) - } - { - const prefix string = ",\"Head\":" - out.RawString(prefix) - out.String(string(in.Head)) - } - { - const prefix string = ",\"Jersey\":" - out.RawString(prefix) - out.String(string(in.Jersey)) - } - { - const prefix string = ",\"MiscLine\":" - out.RawString(prefix) - out.String(string(in.MiscLine)) - } - { - const prefix string = ",\"Mouth\":" - out.RawString(prefix) - out.String(string(in.Mouth)) - } - { - const prefix string = ",\"MouthFlip\":" - out.RawString(prefix) - out.Bool(bool(in.MouthFlip)) - } - { - const prefix string = ",\"Nose\":" - out.RawString(prefix) - out.String(string(in.Nose)) - } - { - const prefix string = ",\"NoseFlip\":" - out.RawString(prefix) - out.Bool(bool(in.NoseFlip)) - } - { - const prefix string = ",\"SmileLine\":" - out.RawString(prefix) - out.String(string(in.SmileLine)) - } - { - const prefix string = ",\"BodySize\":" - out.RawString(prefix) - out.Float32(float32(in.BodySize)) - } - { - const prefix string = ",\"EarSize\":" - out.RawString(prefix) - out.Float32(float32(in.EarSize)) - } - { - const prefix string = ",\"EyeAngle\":" - out.RawString(prefix) - out.Int8(int8(in.EyeAngle)) - } - { - const prefix string = ",\"EyeBrowAngle\":" - out.RawString(prefix) - out.Int8(int8(in.EyeBrowAngle)) - } - { - const prefix string = ",\"FaceSize\":" - out.RawString(prefix) - out.Float32(float32(in.FaceSize)) - } - { - const prefix string = ",\"FacialHairShave\":" - out.RawString(prefix) - out.String(string(in.FacialHairShave)) - } - { - const prefix string = ",\"NoseSize\":" - out.RawString(prefix) - out.Float32(float32(in.NoseSize)) - } - { - const prefix string = ",\"SmileLineSize\":" - out.RawString(prefix) - out.Float32(float32(in.SmileLineSize)) - } - { - const prefix string = ",\"SkinColor\":" - out.RawString(prefix) - out.String(string(in.SkinColor)) - } - { - const prefix string = ",\"HairColor\":" - out.RawString(prefix) - out.String(string(in.HairColor)) - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in *jlexer.Lexer, out *structs.NFLDepthChart) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = int(in.Int()) - case "DepthChartPlayers": - if in.IsNull() { - in.Skip() - out.DepthChartPlayers = nil - } else { - in.Delim('[') - if out.DepthChartPlayers == nil { - if !in.IsDelim(']') { - out.DepthChartPlayers = make([]structs.NFLDepthChartPosition, 0, 0) - } else { - out.DepthChartPlayers = []structs.NFLDepthChartPosition{} - } - } else { - out.DepthChartPlayers = (out.DepthChartPlayers)[:0] - } - for !in.IsDelim(']') { - var v127 structs.NFLDepthChartPosition - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in, &v127) - out.DepthChartPlayers = append(out.DepthChartPlayers, v127) - in.WantComma() - } - in.Delim(']') - } - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out *jwriter.Writer, in structs.NFLDepthChart) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"DepthChartPlayers\":" - out.RawString(prefix) - if in.DepthChartPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v128, v129 := range in.DepthChartPlayers { - if v128 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out, v129) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in *jlexer.Lexer, out *structs.NFLDepthChartPosition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "DepthChartID": - out.DepthChartID = uint(in.Uint()) - case "PlayerID": - out.PlayerID = uint(in.Uint()) - case "Position": - out.Position = string(in.String()) - case "PositionLevel": - out.PositionLevel = string(in.String()) - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "OriginalPosition": - out.OriginalPosition = string(in.String()) - case "NFLPlayer": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &out.NFLPlayer) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out *jwriter.Writer, in structs.NFLDepthChartPosition) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"DepthChartID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.DepthChartID)) - } - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix) - out.Uint(uint(in.PlayerID)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"PositionLevel\":" - out.RawString(prefix) - out.String(string(in.PositionLevel)) - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"OriginalPosition\":" - out.RawString(prefix) - out.String(string(in.OriginalPosition)) - } - { - const prefix string = ",\"NFLPlayer\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, in.NFLPlayer) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in *jlexer.Lexer, out *models.NFLDraftee) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "HighSchool": - out.HighSchool = string(in.String()) - case "CollegeID": - out.CollegeID = uint(in.Uint()) - case "College": - out.College = string(in.String()) - case "DraftedTeamID": - out.DraftedTeamID = uint(in.Uint()) - case "DraftedTeam": - out.DraftedTeam = string(in.String()) - case "DraftedRound": - out.DraftedRound = uint(in.Uint()) - case "DraftPickID": - out.DraftPickID = uint(in.Uint()) - case "DraftedPick": - out.DraftedPick = uint(in.Uint()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "OverallGrade": - out.OverallGrade = string(in.String()) - case "StaminaGrade": - out.StaminaGrade = string(in.String()) - case "InjuryGrade": - out.InjuryGrade = string(in.String()) - case "FootballIQGrade": - out.FootballIQGrade = string(in.String()) - case "SpeedGrade": - out.SpeedGrade = string(in.String()) - case "CarryingGrade": - out.CarryingGrade = string(in.String()) - case "AgilityGrade": - out.AgilityGrade = string(in.String()) - case "CatchingGrade": - out.CatchingGrade = string(in.String()) - case "RouteRunningGrade": - out.RouteRunningGrade = string(in.String()) - case "ZoneCoverageGrade": - out.ZoneCoverageGrade = string(in.String()) - case "ManCoverageGrade": - out.ManCoverageGrade = string(in.String()) - case "StrengthGrade": - out.StrengthGrade = string(in.String()) - case "TackleGrade": - out.TackleGrade = string(in.String()) - case "PassBlockGrade": - out.PassBlockGrade = string(in.String()) - case "RunBlockGrade": - out.RunBlockGrade = string(in.String()) - case "PassRushGrade": - out.PassRushGrade = string(in.String()) - case "RunDefenseGrade": - out.RunDefenseGrade = string(in.String()) - case "ThrowPowerGrade": - out.ThrowPowerGrade = string(in.String()) - case "ThrowAccuracyGrade": - out.ThrowAccuracyGrade = string(in.String()) - case "KickAccuracyGrade": - out.KickAccuracyGrade = string(in.String()) - case "KickPowerGrade": - out.KickPowerGrade = string(in.String()) - case "PuntAccuracyGrade": - out.PuntAccuracyGrade = string(in.String()) - case "PuntPowerGrade": - out.PuntPowerGrade = string(in.String()) - case "BoomOrBust": - out.BoomOrBust = bool(in.Bool()) - case "BoomOrBustStatus": - out.BoomOrBustStatus = string(in.String()) - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "Position": - out.Position = string(in.String()) - case "Archetype": - out.Archetype = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "Height": - out.Height = int(in.Int()) - case "Weight": - out.Weight = int(in.Int()) - case "Age": - out.Age = int(in.Int()) - case "Stars": - out.Stars = int(in.Int()) - case "Overall": - out.Overall = int(in.Int()) - case "Stamina": - out.Stamina = int(in.Int()) - case "Injury": - out.Injury = int(in.Int()) - case "FootballIQ": - out.FootballIQ = int(in.Int()) - case "Speed": - out.Speed = int(in.Int()) - case "Carrying": - out.Carrying = int(in.Int()) - case "Agility": - out.Agility = int(in.Int()) - case "Catching": - out.Catching = int(in.Int()) - case "RouteRunning": - out.RouteRunning = int(in.Int()) - case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) - case "ManCoverage": - out.ManCoverage = int(in.Int()) - case "Strength": - out.Strength = int(in.Int()) - case "Tackle": - out.Tackle = int(in.Int()) - case "PassBlock": - out.PassBlock = int(in.Int()) - case "RunBlock": - out.RunBlock = int(in.Int()) - case "PassRush": - out.PassRush = int(in.Int()) - case "RunDefense": - out.RunDefense = int(in.Int()) - case "ThrowPower": - out.ThrowPower = int(in.Int()) - case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) - case "KickAccuracy": - out.KickAccuracy = int(in.Int()) - case "KickPower": - out.KickPower = int(in.Int()) - case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) - case "PuntPower": - out.PuntPower = int(in.Int()) - case "Progression": - out.Progression = int(in.Int()) - case "Discipline": - out.Discipline = int(in.Int()) - case "PotentialGrade": - out.PotentialGrade = string(in.String()) - case "FreeAgency": - out.FreeAgency = string(in.String()) - case "Personality": - out.Personality = string(in.String()) - case "RecruitingBias": - out.RecruitingBias = string(in.String()) - case "WorkEthic": - out.WorkEthic = string(in.String()) - case "AcademicBias": - out.AcademicBias = string(in.String()) - case "IsInjured": - out.IsInjured = bool(in.Bool()) - case "InjuryName": - out.InjuryName = string(in.String()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryReserve": - out.InjuryReserve = bool(in.Bool()) - case "PrimeAge": - out.PrimeAge = uint(in.Uint()) - case "Clutch": - out.Clutch = int(in.Int()) - case "Shotgun": - out.Shotgun = int(in.Int()) - case "PositionTwo": - out.PositionTwo = string(in.String()) - case "ArchetypeTwo": - out.ArchetypeTwo = string(in.String()) - case "RelativeID": - out.RelativeID = uint(in.Uint()) - case "RelativeType": - out.RelativeType = uint(in.Uint()) - case "Notes": - out.Notes = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out *jwriter.Writer, in models.NFLDraftee) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"HighSchool\":" - out.RawString(prefix) - out.String(string(in.HighSchool)) - } - { - const prefix string = ",\"CollegeID\":" - out.RawString(prefix) - out.Uint(uint(in.CollegeID)) - } - { - const prefix string = ",\"College\":" - out.RawString(prefix) - out.String(string(in.College)) - } - { - const prefix string = ",\"DraftedTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedTeamID)) - } - { - const prefix string = ",\"DraftedTeam\":" - out.RawString(prefix) - out.String(string(in.DraftedTeam)) - } - { - const prefix string = ",\"DraftedRound\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedRound)) - } - { - const prefix string = ",\"DraftPickID\":" - out.RawString(prefix) - out.Uint(uint(in.DraftPickID)) - } - { - const prefix string = ",\"DraftedPick\":" - out.RawString(prefix) - out.Uint(uint(in.DraftedPick)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"OverallGrade\":" - out.RawString(prefix) - out.String(string(in.OverallGrade)) - } - { - const prefix string = ",\"StaminaGrade\":" - out.RawString(prefix) - out.String(string(in.StaminaGrade)) - } - { - const prefix string = ",\"InjuryGrade\":" - out.RawString(prefix) - out.String(string(in.InjuryGrade)) - } - { - const prefix string = ",\"FootballIQGrade\":" - out.RawString(prefix) - out.String(string(in.FootballIQGrade)) - } - { - const prefix string = ",\"SpeedGrade\":" - out.RawString(prefix) - out.String(string(in.SpeedGrade)) - } - { - const prefix string = ",\"CarryingGrade\":" - out.RawString(prefix) - out.String(string(in.CarryingGrade)) - } - { - const prefix string = ",\"AgilityGrade\":" - out.RawString(prefix) - out.String(string(in.AgilityGrade)) - } - { - const prefix string = ",\"CatchingGrade\":" - out.RawString(prefix) - out.String(string(in.CatchingGrade)) - } - { - const prefix string = ",\"RouteRunningGrade\":" - out.RawString(prefix) - out.String(string(in.RouteRunningGrade)) - } - { - const prefix string = ",\"ZoneCoverageGrade\":" - out.RawString(prefix) - out.String(string(in.ZoneCoverageGrade)) - } - { - const prefix string = ",\"ManCoverageGrade\":" - out.RawString(prefix) - out.String(string(in.ManCoverageGrade)) - } - { - const prefix string = ",\"StrengthGrade\":" - out.RawString(prefix) - out.String(string(in.StrengthGrade)) - } - { - const prefix string = ",\"TackleGrade\":" - out.RawString(prefix) - out.String(string(in.TackleGrade)) - } - { - const prefix string = ",\"PassBlockGrade\":" - out.RawString(prefix) - out.String(string(in.PassBlockGrade)) - } - { - const prefix string = ",\"RunBlockGrade\":" - out.RawString(prefix) - out.String(string(in.RunBlockGrade)) - } - { - const prefix string = ",\"PassRushGrade\":" - out.RawString(prefix) - out.String(string(in.PassRushGrade)) - } - { - const prefix string = ",\"RunDefenseGrade\":" - out.RawString(prefix) - out.String(string(in.RunDefenseGrade)) - } - { - const prefix string = ",\"ThrowPowerGrade\":" - out.RawString(prefix) - out.String(string(in.ThrowPowerGrade)) - } - { - const prefix string = ",\"ThrowAccuracyGrade\":" - out.RawString(prefix) - out.String(string(in.ThrowAccuracyGrade)) - } - { - const prefix string = ",\"KickAccuracyGrade\":" - out.RawString(prefix) - out.String(string(in.KickAccuracyGrade)) - } - { - const prefix string = ",\"KickPowerGrade\":" - out.RawString(prefix) - out.String(string(in.KickPowerGrade)) - } - { - const prefix string = ",\"PuntAccuracyGrade\":" - out.RawString(prefix) - out.String(string(in.PuntAccuracyGrade)) - } - { - const prefix string = ",\"PuntPowerGrade\":" - out.RawString(prefix) - out.String(string(in.PuntPowerGrade)) - } - { - const prefix string = ",\"BoomOrBust\":" - out.RawString(prefix) - out.Bool(bool(in.BoomOrBust)) - } - { - const prefix string = ",\"BoomOrBustStatus\":" - out.RawString(prefix) - out.String(string(in.BoomOrBustStatus)) - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"Archetype\":" - out.RawString(prefix) - out.String(string(in.Archetype)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"Height\":" - out.RawString(prefix) - out.Int(int(in.Height)) - } - { - const prefix string = ",\"Weight\":" - out.RawString(prefix) - out.Int(int(in.Weight)) - } - { - const prefix string = ",\"Age\":" - out.RawString(prefix) - out.Int(int(in.Age)) - } - { - const prefix string = ",\"Stars\":" - out.RawString(prefix) - out.Int(int(in.Stars)) - } - { - const prefix string = ",\"Overall\":" - out.RawString(prefix) - out.Int(int(in.Overall)) - } - { - const prefix string = ",\"Stamina\":" - out.RawString(prefix) - out.Int(int(in.Stamina)) - } - { - const prefix string = ",\"Injury\":" - out.RawString(prefix) - out.Int(int(in.Injury)) - } - { - const prefix string = ",\"FootballIQ\":" - out.RawString(prefix) - out.Int(int(in.FootballIQ)) - } - { - const prefix string = ",\"Speed\":" - out.RawString(prefix) - out.Int(int(in.Speed)) - } - { - const prefix string = ",\"Carrying\":" - out.RawString(prefix) - out.Int(int(in.Carrying)) - } - { - const prefix string = ",\"Agility\":" - out.RawString(prefix) - out.Int(int(in.Agility)) - } - { - const prefix string = ",\"Catching\":" - out.RawString(prefix) - out.Int(int(in.Catching)) - } - { - const prefix string = ",\"RouteRunning\":" - out.RawString(prefix) - out.Int(int(in.RouteRunning)) - } - { - const prefix string = ",\"ZoneCoverage\":" - out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) - } - { - const prefix string = ",\"ManCoverage\":" - out.RawString(prefix) - out.Int(int(in.ManCoverage)) - } - { - const prefix string = ",\"Strength\":" - out.RawString(prefix) - out.Int(int(in.Strength)) - } - { - const prefix string = ",\"Tackle\":" - out.RawString(prefix) - out.Int(int(in.Tackle)) - } - { - const prefix string = ",\"PassBlock\":" - out.RawString(prefix) - out.Int(int(in.PassBlock)) - } - { - const prefix string = ",\"RunBlock\":" - out.RawString(prefix) - out.Int(int(in.RunBlock)) - } - { - const prefix string = ",\"PassRush\":" - out.RawString(prefix) - out.Int(int(in.PassRush)) - } - { - const prefix string = ",\"RunDefense\":" - out.RawString(prefix) - out.Int(int(in.RunDefense)) - } - { - const prefix string = ",\"ThrowPower\":" - out.RawString(prefix) - out.Int(int(in.ThrowPower)) - } - { - const prefix string = ",\"ThrowAccuracy\":" - out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) - } - { - const prefix string = ",\"KickAccuracy\":" - out.RawString(prefix) - out.Int(int(in.KickAccuracy)) - } - { - const prefix string = ",\"KickPower\":" - out.RawString(prefix) - out.Int(int(in.KickPower)) - } - { - const prefix string = ",\"PuntAccuracy\":" - out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) - } - { - const prefix string = ",\"PuntPower\":" - out.RawString(prefix) - out.Int(int(in.PuntPower)) - } - { - const prefix string = ",\"Progression\":" - out.RawString(prefix) - out.Int(int(in.Progression)) - } - { - const prefix string = ",\"Discipline\":" - out.RawString(prefix) - out.Int(int(in.Discipline)) - } - { - const prefix string = ",\"PotentialGrade\":" - out.RawString(prefix) - out.String(string(in.PotentialGrade)) - } - { - const prefix string = ",\"FreeAgency\":" - out.RawString(prefix) - out.String(string(in.FreeAgency)) - } - { - const prefix string = ",\"Personality\":" - out.RawString(prefix) - out.String(string(in.Personality)) - } - { - const prefix string = ",\"RecruitingBias\":" - out.RawString(prefix) - out.String(string(in.RecruitingBias)) - } - { - const prefix string = ",\"WorkEthic\":" - out.RawString(prefix) - out.String(string(in.WorkEthic)) - } - { - const prefix string = ",\"AcademicBias\":" - out.RawString(prefix) - out.String(string(in.AcademicBias)) - } - { - const prefix string = ",\"IsInjured\":" - out.RawString(prefix) - out.Bool(bool(in.IsInjured)) - } - { - const prefix string = ",\"InjuryName\":" - out.RawString(prefix) - out.String(string(in.InjuryName)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryReserve\":" - out.RawString(prefix) - out.Bool(bool(in.InjuryReserve)) - } - { - const prefix string = ",\"PrimeAge\":" - out.RawString(prefix) - out.Uint(uint(in.PrimeAge)) - } - { - const prefix string = ",\"Clutch\":" - out.RawString(prefix) - out.Int(int(in.Clutch)) - } - { - const prefix string = ",\"Shotgun\":" - out.RawString(prefix) - out.Int(int(in.Shotgun)) - } - { - const prefix string = ",\"PositionTwo\":" - out.RawString(prefix) - out.String(string(in.PositionTwo)) - } - { - const prefix string = ",\"ArchetypeTwo\":" - out.RawString(prefix) - out.String(string(in.ArchetypeTwo)) - } - { - const prefix string = ",\"RelativeID\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeID)) - } - { - const prefix string = ",\"RelativeType\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeType)) - } - { - const prefix string = ",\"Notes\":" - out.RawString(prefix) - out.String(string(in.Notes)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in *jlexer.Lexer, out *structs.CollegeTeamDepthChart) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = int(in.Int()) - case "DepthChartPlayers": - if in.IsNull() { - in.Skip() - out.DepthChartPlayers = nil - } else { - in.Delim('[') - if out.DepthChartPlayers == nil { - if !in.IsDelim(']') { - out.DepthChartPlayers = make([]structs.CollegeDepthChartPosition, 0, 0) - } else { - out.DepthChartPlayers = []structs.CollegeDepthChartPosition{} - } - } else { - out.DepthChartPlayers = (out.DepthChartPlayers)[:0] - } - for !in.IsDelim(']') { - var v130 structs.CollegeDepthChartPosition - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs27(in, &v130) - out.DepthChartPlayers = append(out.DepthChartPlayers, v130) - in.WantComma() - } - in.Delim(']') - } - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out *jwriter.Writer, in structs.CollegeTeamDepthChart) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"DepthChartPlayers\":" - out.RawString(prefix) - if in.DepthChartPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v131, v132 := range in.DepthChartPlayers { - if v131 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs27(out, v132) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs27(in *jlexer.Lexer, out *structs.CollegeDepthChartPosition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "DepthChartID": - out.DepthChartID = int(in.Int()) - case "PlayerID": - out.PlayerID = int(in.Int()) - case "Position": - out.Position = string(in.String()) - case "PositionLevel": - out.PositionLevel = string(in.String()) - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "OriginalPosition": - out.OriginalPosition = string(in.String()) - case "CollegePlayer": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &out.CollegePlayer) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs27(out *jwriter.Writer, in structs.CollegeDepthChartPosition) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"DepthChartID\":" - out.RawString(prefix[1:]) - out.Int(int(in.DepthChartID)) - } - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"PositionLevel\":" - out.RawString(prefix) - out.String(string(in.PositionLevel)) - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"OriginalPosition\":" - out.RawString(prefix) - out.String(string(in.OriginalPosition)) - } - { - const prefix string = ",\"CollegePlayer\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, in.CollegePlayer) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in *jlexer.Lexer, out *structs.Croot) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "ID": - out.ID = uint(in.Uint()) - case "PlayerID": - out.PlayerID = int(in.Int()) - case "TeamID": - out.TeamID = int(in.Int()) - case "College": - out.College = string(in.String()) - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "Position": - out.Position = string(in.String()) - case "Archetype": - out.Archetype = string(in.String()) - case "Height": - out.Height = int(in.Int()) - case "Weight": - out.Weight = int(in.Int()) - case "Stars": - out.Stars = int(in.Int()) - case "PotentialGrade": - out.PotentialGrade = string(in.String()) - case "Personality": - out.Personality = string(in.String()) - case "RecruitingBias": - out.RecruitingBias = string(in.String()) - case "AcademicBias": - out.AcademicBias = string(in.String()) - case "WorkEthic": - out.WorkEthic = string(in.String()) - case "HighSchool": - out.HighSchool = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "AffinityOne": - out.AffinityOne = string(in.String()) - case "AffinityTwo": - out.AffinityTwo = string(in.String()) - case "RecruitingStatus": - out.RecruitingStatus = string(in.String()) - case "RecruitModifier": - out.RecruitModifier = float64(in.Float64()) - case "IsCustomCroot": - out.IsCustomCroot = bool(in.Bool()) - case "CustomCrootFor": - out.CustomCrootFor = string(in.String()) - case "IsSigned": - out.IsSigned = bool(in.Bool()) - case "OverallGrade": - out.OverallGrade = string(in.String()) - case "TotalRank": - out.TotalRank = float64(in.Float64()) - case "LeadingTeams": - if in.IsNull() { - in.Skip() - out.LeadingTeams = nil - } else { - in.Delim('[') - if out.LeadingTeams == nil { - if !in.IsDelim(']') { - out.LeadingTeams = make([]structs.LeadingTeams, 0, 1) - } else { - out.LeadingTeams = []structs.LeadingTeams{} - } - } else { - out.LeadingTeams = (out.LeadingTeams)[:0] - } - for !in.IsDelim(']') { - var v133 structs.LeadingTeams - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v133) - out.LeadingTeams = append(out.LeadingTeams, v133) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out *jwriter.Writer, in structs.Croot) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"ID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"College\":" - out.RawString(prefix) - out.String(string(in.College)) - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"Archetype\":" - out.RawString(prefix) - out.String(string(in.Archetype)) - } - { - const prefix string = ",\"Height\":" - out.RawString(prefix) - out.Int(int(in.Height)) - } - { - const prefix string = ",\"Weight\":" - out.RawString(prefix) - out.Int(int(in.Weight)) - } - { - const prefix string = ",\"Stars\":" - out.RawString(prefix) - out.Int(int(in.Stars)) - } - { - const prefix string = ",\"PotentialGrade\":" - out.RawString(prefix) - out.String(string(in.PotentialGrade)) - } - { - const prefix string = ",\"Personality\":" - out.RawString(prefix) - out.String(string(in.Personality)) - } - { - const prefix string = ",\"RecruitingBias\":" - out.RawString(prefix) - out.String(string(in.RecruitingBias)) - } - { - const prefix string = ",\"AcademicBias\":" - out.RawString(prefix) - out.String(string(in.AcademicBias)) - } - { - const prefix string = ",\"WorkEthic\":" - out.RawString(prefix) - out.String(string(in.WorkEthic)) - } - { - const prefix string = ",\"HighSchool\":" - out.RawString(prefix) - out.String(string(in.HighSchool)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"AffinityOne\":" - out.RawString(prefix) - out.String(string(in.AffinityOne)) - } - { - const prefix string = ",\"AffinityTwo\":" - out.RawString(prefix) - out.String(string(in.AffinityTwo)) - } - { - const prefix string = ",\"RecruitingStatus\":" - out.RawString(prefix) - out.String(string(in.RecruitingStatus)) - } - { - const prefix string = ",\"RecruitModifier\":" - out.RawString(prefix) - out.Float64(float64(in.RecruitModifier)) - } - { - const prefix string = ",\"IsCustomCroot\":" - out.RawString(prefix) - out.Bool(bool(in.IsCustomCroot)) - } - { - const prefix string = ",\"CustomCrootFor\":" - out.RawString(prefix) - out.String(string(in.CustomCrootFor)) - } - { - const prefix string = ",\"IsSigned\":" - out.RawString(prefix) - out.Bool(bool(in.IsSigned)) - } - { - const prefix string = ",\"OverallGrade\":" - out.RawString(prefix) - out.String(string(in.OverallGrade)) - } - { - const prefix string = ",\"TotalRank\":" - out.RawString(prefix) - out.Float64(float64(in.TotalRank)) - } - { - const prefix string = ",\"LeadingTeams\":" - out.RawString(prefix) - if in.LeadingTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v134, v135 := range in.LeadingTeams { - if v134 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v135) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in *jlexer.Lexer, out *structs.LeadingTeams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = uint(in.Uint()) - case "TeamName": - out.TeamName = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "Odds": - out.Odds = float64(in.Float64()) - case "HasScholarship": - out.HasScholarship = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out *jwriter.Writer, in structs.LeadingTeams) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"TeamName\":" - out.RawString(prefix) - out.String(string(in.TeamName)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"Odds\":" - out.RawString(prefix) - out.Float64(float64(in.Odds)) - } - { - const prefix string = ",\"HasScholarship\":" - out.RawString(prefix) - out.Bool(bool(in.HasScholarship)) - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, out *BootstrapData) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "CollegeTeam": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &out.CollegeTeam) - case "AllCollegeTeams": - if in.IsNull() { - in.Skip() - out.AllCollegeTeams = nil - } else { - in.Delim('[') - if out.AllCollegeTeams == nil { - if !in.IsDelim(']') { - out.AllCollegeTeams = make([]structs.CollegeTeam, 0, 0) - } else { - out.AllCollegeTeams = []structs.CollegeTeam{} - } - } else { - out.AllCollegeTeams = (out.AllCollegeTeams)[:0] - } - for !in.IsDelim(']') { - var v136 structs.CollegeTeam - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v136) - out.AllCollegeTeams = append(out.AllCollegeTeams, v136) - in.WantComma() - } - in.Delim(']') - } - case "CollegeRosterMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.CollegeRosterMap = make(map[uint][]structs.CollegePlayer) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v137 []structs.CollegePlayer - if in.IsNull() { - in.Skip() - v137 = nil - } else { - in.Delim('[') - if v137 == nil { - if !in.IsDelim(']') { - v137 = make([]structs.CollegePlayer, 0, 0) - } else { - v137 = []structs.CollegePlayer{} - } - } else { - v137 = (v137)[:0] - } - for !in.IsDelim(']') { - var v138 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v138) - v137 = append(v137, v138) - in.WantComma() - } - in.Delim(']') - } - (out.CollegeRosterMap)[key] = v137 - in.WantComma() - } - in.Delim('}') - } - case "HistoricCollegePlayers": - if in.IsNull() { - in.Skip() - out.HistoricCollegePlayers = nil - } else { - in.Delim('[') - if out.HistoricCollegePlayers == nil { - if !in.IsDelim(']') { - out.HistoricCollegePlayers = make([]structs.HistoricCollegePlayer, 0, 0) - } else { - out.HistoricCollegePlayers = []structs.HistoricCollegePlayer{} - } - } else { - out.HistoricCollegePlayers = (out.HistoricCollegePlayers)[:0] - } - for !in.IsDelim(']') { - var v139 structs.HistoricCollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in, &v139) - out.HistoricCollegePlayers = append(out.HistoricCollegePlayers, v139) - in.WantComma() - } - in.Delim(']') - } - case "TopCFBPassers": - if in.IsNull() { - in.Skip() - out.TopCFBPassers = nil - } else { - in.Delim('[') - if out.TopCFBPassers == nil { - if !in.IsDelim(']') { - out.TopCFBPassers = make([]structs.CollegePlayer, 0, 0) - } else { - out.TopCFBPassers = []structs.CollegePlayer{} - } - } else { - out.TopCFBPassers = (out.TopCFBPassers)[:0] - } - for !in.IsDelim(']') { - var v140 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v140) - out.TopCFBPassers = append(out.TopCFBPassers, v140) - in.WantComma() - } - in.Delim(']') - } - case "TopCFBRushers": - if in.IsNull() { - in.Skip() - out.TopCFBRushers = nil - } else { - in.Delim('[') - if out.TopCFBRushers == nil { - if !in.IsDelim(']') { - out.TopCFBRushers = make([]structs.CollegePlayer, 0, 0) - } else { - out.TopCFBRushers = []structs.CollegePlayer{} - } - } else { - out.TopCFBRushers = (out.TopCFBRushers)[:0] - } - for !in.IsDelim(']') { - var v141 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v141) - out.TopCFBRushers = append(out.TopCFBRushers, v141) - in.WantComma() - } - in.Delim(']') - } - case "TopCFBReceivers": - if in.IsNull() { - in.Skip() - out.TopCFBReceivers = nil - } else { - in.Delim('[') - if out.TopCFBReceivers == nil { - if !in.IsDelim(']') { - out.TopCFBReceivers = make([]structs.CollegePlayer, 0, 0) - } else { - out.TopCFBReceivers = []structs.CollegePlayer{} - } - } else { - out.TopCFBReceivers = (out.TopCFBReceivers)[:0] - } - for !in.IsDelim(']') { - var v142 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v142) - out.TopCFBReceivers = append(out.TopCFBReceivers, v142) - in.WantComma() - } - in.Delim(']') - } - case "PortalPlayers": - if in.IsNull() { - in.Skip() - out.PortalPlayers = nil - } else { - in.Delim('[') - if out.PortalPlayers == nil { - if !in.IsDelim(']') { - out.PortalPlayers = make([]structs.CollegePlayer, 0, 0) - } else { - out.PortalPlayers = []structs.CollegePlayer{} - } - } else { - out.PortalPlayers = (out.PortalPlayers)[:0] - } - for !in.IsDelim(']') { - var v143 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v143) - out.PortalPlayers = append(out.PortalPlayers, v143) - in.WantComma() - } - in.Delim(']') - } - case "CollegeInjuryReport": - if in.IsNull() { - in.Skip() - out.CollegeInjuryReport = nil - } else { - in.Delim('[') - if out.CollegeInjuryReport == nil { - if !in.IsDelim(']') { - out.CollegeInjuryReport = make([]structs.CollegePlayer, 0, 0) - } else { - out.CollegeInjuryReport = []structs.CollegePlayer{} - } - } else { - out.CollegeInjuryReport = (out.CollegeInjuryReport)[:0] - } - for !in.IsDelim(']') { - var v144 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v144) - out.CollegeInjuryReport = append(out.CollegeInjuryReport, v144) - in.WantComma() - } - in.Delim(']') - } - case "CollegeNotifications": - if in.IsNull() { - in.Skip() - out.CollegeNotifications = nil - } else { - in.Delim('[') - if out.CollegeNotifications == nil { - if !in.IsDelim(']') { - out.CollegeNotifications = make([]structs.Notification, 0, 0) - } else { - out.CollegeNotifications = []structs.Notification{} - } - } else { - out.CollegeNotifications = (out.CollegeNotifications)[:0] - } - for !in.IsDelim(']') { - var v145 structs.Notification - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v145) - out.CollegeNotifications = append(out.CollegeNotifications, v145) - in.WantComma() - } - in.Delim(']') - } - case "CollegeGameplan": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in, &out.CollegeGameplan) - case "CollegeGameplanMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.CollegeGameplanMap = make(map[uint]structs.CollegeGameplan) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v146 structs.CollegeGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in, &v146) - (out.CollegeGameplanMap)[key] = v146 - in.WantComma() - } - in.Delim('}') - } - case "CollegeDepthChart": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in, &out.CollegeDepthChart) - case "ProTeam": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in, &out.ProTeam) - case "AllProTeams": - if in.IsNull() { - in.Skip() - out.AllProTeams = nil - } else { - in.Delim('[') - if out.AllProTeams == nil { - if !in.IsDelim(']') { - out.AllProTeams = make([]structs.NFLTeam, 0, 0) - } else { - out.AllProTeams = []structs.NFLTeam{} - } - } else { - out.AllProTeams = (out.AllProTeams)[:0] - } - for !in.IsDelim(']') { - var v147 structs.NFLTeam - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in, &v147) - out.AllProTeams = append(out.AllProTeams, v147) - in.WantComma() - } - in.Delim(']') - } - case "ProNotifications": - if in.IsNull() { - in.Skip() - out.ProNotifications = nil - } else { - in.Delim('[') - if out.ProNotifications == nil { - if !in.IsDelim(']') { - out.ProNotifications = make([]structs.Notification, 0, 0) - } else { - out.ProNotifications = []structs.Notification{} - } - } else { - out.ProNotifications = (out.ProNotifications)[:0] - } - for !in.IsDelim(']') { - var v148 structs.Notification - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v148) - out.ProNotifications = append(out.ProNotifications, v148) - in.WantComma() - } - in.Delim(']') - } - case "NFLGameplan": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &out.NFLGameplan) - case "NFLGameplanMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.NFLGameplanMap = make(map[uint]structs.NFLGameplan) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v149 structs.NFLGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v149) - (out.NFLGameplanMap)[key] = v149 - in.WantComma() - } - in.Delim('}') - } - case "NFLDepthChart": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, &out.NFLDepthChart) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer, in BootstrapData) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"CollegeTeam\":" - out.RawString(prefix[1:]) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, in.CollegeTeam) - } - { - const prefix string = ",\"AllCollegeTeams\":" - out.RawString(prefix) - if in.AllCollegeTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v150, v151 := range in.AllCollegeTeams { - if v150 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v151) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"CollegeRosterMap\":" - out.RawString(prefix) - if in.CollegeRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v152First := true - for v152Name, v152Value := range in.CollegeRosterMap { - if v152First { - v152First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v152Name)) - out.RawByte(':') - if v152Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v153, v154 := range v152Value { - if v153 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v154) - } - out.RawByte(']') - } - } - out.RawByte('}') - } - } - { - const prefix string = ",\"HistoricCollegePlayers\":" - out.RawString(prefix) - if in.HistoricCollegePlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v155, v156 := range in.HistoricCollegePlayers { - if v155 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out, v156) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TopCFBPassers\":" - out.RawString(prefix) - if in.TopCFBPassers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v157, v158 := range in.TopCFBPassers { - if v157 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v158) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TopCFBRushers\":" - out.RawString(prefix) - if in.TopCFBRushers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v159, v160 := range in.TopCFBRushers { - if v159 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v160) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TopCFBReceivers\":" - out.RawString(prefix) - if in.TopCFBReceivers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v161, v162 := range in.TopCFBReceivers { - if v161 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v162) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"PortalPlayers\":" - out.RawString(prefix) - if in.PortalPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v163, v164 := range in.PortalPlayers { - if v163 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v164) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"CollegeInjuryReport\":" - out.RawString(prefix) - if in.CollegeInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v165, v166 := range in.CollegeInjuryReport { - if v165 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v166) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"CollegeNotifications\":" - out.RawString(prefix) - if in.CollegeNotifications == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v167, v168 := range in.CollegeNotifications { - if v167 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v168) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"CollegeGameplan\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out, in.CollegeGameplan) - } - { - const prefix string = ",\"CollegeGameplanMap\":" - out.RawString(prefix) - if in.CollegeGameplanMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v169First := true - for v169Name, v169Value := range in.CollegeGameplanMap { - if v169First { - v169First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v169Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out, v169Value) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"CollegeDepthChart\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out, in.CollegeDepthChart) - } - { - const prefix string = ",\"ProTeam\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out, in.ProTeam) - } - { - const prefix string = ",\"AllProTeams\":" - out.RawString(prefix) - if in.AllProTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v170, v171 := range in.AllProTeams { - if v170 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out, v171) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"ProNotifications\":" - out.RawString(prefix) - if in.ProNotifications == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v172, v173 := range in.ProNotifications { - if v172 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v173) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"NFLGameplan\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, in.NFLGameplan) - } - { - const prefix string = ",\"NFLGameplanMap\":" - out.RawString(prefix) - if in.NFLGameplanMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v174First := true - for v174Name, v174Value := range in.NFLGameplanMap { - if v174First { - v174First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v174Name)) - out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v174Value) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"NFLDepthChart\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, in.NFLDepthChart) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v BootstrapData) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v BootstrapData) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *BootstrapData) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *BootstrapData) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(l, v) -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in *jlexer.Lexer, out *structs.NFLGameplan) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = uint(in.Uint()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "OffRunToPassRatio": - out.OffRunToPassRatio = int(in.Int()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "BlitzSafeties": - out.BlitzSafeties = bool(in.Bool()) - case "BlitzCorners": - out.BlitzCorners = bool(in.Bool()) - case "LinebackerCoverage": - out.LinebackerCoverage = string(in.String()) - case "CornersCoverage": - out.CornersCoverage = string(in.String()) - case "SafetiesCoverage": - out.SafetiesCoverage = string(in.String()) - case "DiveFocus": - out.DiveFocus = int(in.Int()) - case "PitchFocus": - out.PitchFocus = int(in.Int()) - case "PrimaryHB": - out.PrimaryHB = int(in.Int()) - case "MaximumFGDistance": - out.MaximumFGDistance = int(in.Int()) - case "GoFor4AndShort": - out.GoFor4AndShort = int(in.Int()) - case "GoFor4AndLong": - out.GoFor4AndLong = int(in.Int()) - case "HasSchemePenalty": - out.HasSchemePenalty = bool(in.Bool()) - case "OffenseSchemePenalty": - out.OffenseSchemePenalty = uint(in.Uint()) - case "DefenseSchemePenalty": - out.DefenseSchemePenalty = uint(in.Uint()) - case "DefaultOffense": - out.DefaultOffense = bool(in.Bool()) - case "DefaultDefense": - out.DefaultDefense = bool(in.Bool()) - case "PreviousWeekBye": - out.PreviousWeekBye = bool(in.Bool()) - case "FocusPlays": - out.FocusPlays = string(in.String()) - case "DoubleTeam": - out.DoubleTeam = int(in.Int()) - case "DefFormation1": - out.DefFormation1 = string(in.String()) - case "DefFormation1RunToPass": - out.DefFormation1RunToPass = int(in.Int()) - case "DefFormation1BlitzWeight": - out.DefFormation1BlitzWeight = int(in.Int()) - case "DefFormation1BlitzAggression": - out.DefFormation1BlitzAggression = string(in.String()) - case "DefFormation2": - out.DefFormation2 = string(in.String()) - case "DefFormation2RunToPass": - out.DefFormation2RunToPass = int(in.Int()) - case "DefFormation2BlitzWeight": - out.DefFormation2BlitzWeight = int(in.Int()) - case "DefFormation2BlitzAggression": - out.DefFormation2BlitzAggression = string(in.String()) - case "DefFormation3": - out.DefFormation3 = string(in.String()) - case "DefFormation3RunToPass": - out.DefFormation3RunToPass = int(in.Int()) - case "DefFormation3BlitzWeight": - out.DefFormation3BlitzWeight = int(in.Int()) - case "DefFormation3BlitzAggression": - out.DefFormation3BlitzAggression = string(in.String()) - case "DefFormation4": - out.DefFormation4 = string(in.String()) - case "DefFormation4RunToPass": - out.DefFormation4RunToPass = int(in.Int()) - case "DefFormation4BlitzWeight": - out.DefFormation4BlitzWeight = int(in.Int()) - case "DefFormation4BlitzAggression": - out.DefFormation4BlitzAggression = string(in.String()) - case "DefFormation5": - out.DefFormation5 = string(in.String()) - case "DefFormation5RunToPass": - out.DefFormation5RunToPass = int(in.Int()) - case "DefFormation5BlitzWeight": - out.DefFormation5BlitzWeight = int(in.Int()) - case "DefFormation5BlitzAggression": - out.DefFormation5BlitzAggression = string(in.String()) - case "OffFormation1Name": - out.OffFormation1Name = string(in.String()) - case "OffForm1Weight": - out.OffForm1Weight = int(in.Int()) - case "OffForm1TraditionalRun": - out.OffForm1TraditionalRun = int(in.Int()) - case "OffForm1OptionRun": - out.OffForm1OptionRun = int(in.Int()) - case "OffForm1Pass": - out.OffForm1Pass = int(in.Int()) - case "OffForm1RPO": - out.OffForm1RPO = int(in.Int()) - case "OffFormation2Name": - out.OffFormation2Name = string(in.String()) - case "OffForm2Weight": - out.OffForm2Weight = int(in.Int()) - case "OffForm2TraditionalRun": - out.OffForm2TraditionalRun = int(in.Int()) - case "OffForm2OptionRun": - out.OffForm2OptionRun = int(in.Int()) - case "OffForm2Pass": - out.OffForm2Pass = int(in.Int()) - case "OffForm2RPO": - out.OffForm2RPO = int(in.Int()) - case "OffFormation3Name": - out.OffFormation3Name = string(in.String()) - case "OffForm3Weight": - out.OffForm3Weight = int(in.Int()) - case "OffForm3TraditionalRun": - out.OffForm3TraditionalRun = int(in.Int()) - case "OffForm3OptionRun": - out.OffForm3OptionRun = int(in.Int()) - case "OffForm3Pass": - out.OffForm3Pass = int(in.Int()) - case "OffForm3RPO": - out.OffForm3RPO = int(in.Int()) - case "OffFormation4Name": - out.OffFormation4Name = string(in.String()) - case "OffForm4Weight": - out.OffForm4Weight = int(in.Int()) - case "OffForm4TraditionalRun": - out.OffForm4TraditionalRun = int(in.Int()) - case "OffForm4OptionRun": - out.OffForm4OptionRun = int(in.Int()) - case "OffForm4Pass": - out.OffForm4Pass = int(in.Int()) - case "OffForm4RPO": - out.OffForm4RPO = int(in.Int()) - case "OffFormation5Name": - out.OffFormation5Name = string(in.String()) - case "OffForm5Weight": - out.OffForm5Weight = int(in.Int()) - case "OffForm5TraditionalRun": - out.OffForm5TraditionalRun = int(in.Int()) - case "OffForm5OptionRun": - out.OffForm5OptionRun = int(in.Int()) - case "OffForm5Pass": - out.OffForm5Pass = int(in.Int()) - case "OffForm5RPO": - out.OffForm5RPO = int(in.Int()) - case "RunnerDistributionQB": - out.RunnerDistributionQB = int(in.Int()) - case "RunnerDistributionRB1": - out.RunnerDistributionRB1 = int(in.Int()) - case "RunnerDistributionRB2": - out.RunnerDistributionRB2 = int(in.Int()) - case "RunnerDistributionRB3": - out.RunnerDistributionRB3 = int(in.Int()) - case "RunnerDistributionFB1": - out.RunnerDistributionFB1 = int(in.Int()) - case "RunnerDistributionFB2": - out.RunnerDistributionFB2 = int(in.Int()) - case "RunnerDistributionWR": - out.RunnerDistributionWR = int(in.Int()) - case "RunnerDistributionWRPosition": - out.RunnerDistributionWRPosition = string(in.String()) - case "RunnerDistributionWRID": - out.RunnerDistributionWRID = uint(in.Uint()) - case "RunOutsideLeft": - out.RunOutsideLeft = int(in.Int()) - case "RunOutsideRight": - out.RunOutsideRight = int(in.Int()) - case "RunInsideLeft": - out.RunInsideLeft = int(in.Int()) - case "RunInsideRight": - out.RunInsideRight = int(in.Int()) - case "RunPowerLeft": - out.RunPowerLeft = int(in.Int()) - case "RunPowerRight": - out.RunPowerRight = int(in.Int()) - case "RunDrawLeft": - out.RunDrawLeft = int(in.Int()) - case "RunDrawRight": - out.RunDrawRight = int(in.Int()) - case "ReadOptionLeft": - out.ReadOptionLeft = int(in.Int()) - case "ReadOptionRight": - out.ReadOptionRight = int(in.Int()) - case "SpeedOptionLeft": - out.SpeedOptionLeft = int(in.Int()) - case "SpeedOptionRight": - out.SpeedOptionRight = int(in.Int()) - case "InvertedOptionLeft": - out.InvertedOptionLeft = int(in.Int()) - case "InvertedOptionRight": - out.InvertedOptionRight = int(in.Int()) - case "TripleOptionLeft": - out.TripleOptionLeft = int(in.Int()) - case "TripleOptionRight": - out.TripleOptionRight = int(in.Int()) - case "PassQuick": - out.PassQuick = int(in.Int()) - case "PassShort": - out.PassShort = int(in.Int()) - case "PassLong": - out.PassLong = int(in.Int()) - case "PassDeep": - out.PassDeep = int(in.Int()) - case "PassScreen": - out.PassScreen = int(in.Int()) - case "PassPAShort": - out.PassPAShort = int(in.Int()) - case "PassPAMedium": - out.PassPAMedium = int(in.Int()) - case "PassPALong": - out.PassPALong = int(in.Int()) - case "PassPADeep": - out.PassPADeep = int(in.Int()) - case "LeftVsRight": - out.LeftVsRight = int(in.Int()) - case "ChoiceOutside": - out.ChoiceOutside = int(in.Int()) - case "ChoiceInside": - out.ChoiceInside = int(in.Int()) - case "ChoicePower": - out.ChoicePower = int(in.Int()) - case "PeekOutside": - out.PeekOutside = int(in.Int()) - case "PeekInside": - out.PeekInside = int(in.Int()) - case "PeekPower": - out.PeekPower = int(in.Int()) - case "TargetingWR1": - out.TargetingWR1 = int(in.Int()) - case "TargetDepthWR1": - out.TargetDepthWR1 = string(in.String()) - case "TargetingWR2": - out.TargetingWR2 = int(in.Int()) - case "TargetDepthWR2": - out.TargetDepthWR2 = string(in.String()) - case "TargetingWR3": - out.TargetingWR3 = int(in.Int()) - case "TargetDepthWR3": - out.TargetDepthWR3 = string(in.String()) - case "TargetingWR4": - out.TargetingWR4 = int(in.Int()) - case "TargetDepthWR4": - out.TargetDepthWR4 = string(in.String()) - case "TargetingWR5": - out.TargetingWR5 = int(in.Int()) - case "TargetDepthWR5": - out.TargetDepthWR5 = string(in.String()) - case "TargetingTE1": - out.TargetingTE1 = int(in.Int()) - case "TargetDepthTE1": - out.TargetDepthTE1 = string(in.String()) - case "TargetingTE2": - out.TargetingTE2 = int(in.Int()) - case "TargetDepthTE2": - out.TargetDepthTE2 = string(in.String()) - case "TargetingTE3": - out.TargetingTE3 = int(in.Int()) - case "TargetDepthTE3": - out.TargetDepthTE3 = string(in.String()) - case "TargetingRB1": - out.TargetingRB1 = int(in.Int()) - case "TargetDepthRB1": - out.TargetDepthRB1 = string(in.String()) - case "TargetingRB2": - out.TargetingRB2 = int(in.Int()) - case "TargetDepthRB2": - out.TargetDepthRB2 = string(in.String()) - case "TargetingFB1": - out.TargetingFB1 = int(in.Int()) - case "TargetDepthFB1": - out.TargetDepthFB1 = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out *jwriter.Writer, in structs.NFLGameplan) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"OffRunToPassRatio\":" - out.RawString(prefix) - out.Int(int(in.OffRunToPassRatio)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"BlitzSafeties\":" - out.RawString(prefix) - out.Bool(bool(in.BlitzSafeties)) - } - { - const prefix string = ",\"BlitzCorners\":" - out.RawString(prefix) - out.Bool(bool(in.BlitzCorners)) - } - { - const prefix string = ",\"LinebackerCoverage\":" - out.RawString(prefix) - out.String(string(in.LinebackerCoverage)) - } - { - const prefix string = ",\"CornersCoverage\":" - out.RawString(prefix) - out.String(string(in.CornersCoverage)) - } - { - const prefix string = ",\"SafetiesCoverage\":" - out.RawString(prefix) - out.String(string(in.SafetiesCoverage)) - } - { - const prefix string = ",\"DiveFocus\":" - out.RawString(prefix) - out.Int(int(in.DiveFocus)) - } - { - const prefix string = ",\"PitchFocus\":" - out.RawString(prefix) - out.Int(int(in.PitchFocus)) - } - { - const prefix string = ",\"PrimaryHB\":" - out.RawString(prefix) - out.Int(int(in.PrimaryHB)) - } - { - const prefix string = ",\"MaximumFGDistance\":" - out.RawString(prefix) - out.Int(int(in.MaximumFGDistance)) - } - { - const prefix string = ",\"GoFor4AndShort\":" - out.RawString(prefix) - out.Int(int(in.GoFor4AndShort)) - } - { - const prefix string = ",\"GoFor4AndLong\":" - out.RawString(prefix) - out.Int(int(in.GoFor4AndLong)) - } - { - const prefix string = ",\"HasSchemePenalty\":" - out.RawString(prefix) - out.Bool(bool(in.HasSchemePenalty)) - } - { - const prefix string = ",\"OffenseSchemePenalty\":" - out.RawString(prefix) - out.Uint(uint(in.OffenseSchemePenalty)) - } - { - const prefix string = ",\"DefenseSchemePenalty\":" - out.RawString(prefix) - out.Uint(uint(in.DefenseSchemePenalty)) - } - { - const prefix string = ",\"DefaultOffense\":" - out.RawString(prefix) - out.Bool(bool(in.DefaultOffense)) - } - { - const prefix string = ",\"DefaultDefense\":" - out.RawString(prefix) - out.Bool(bool(in.DefaultDefense)) - } - { - const prefix string = ",\"PreviousWeekBye\":" - out.RawString(prefix) - out.Bool(bool(in.PreviousWeekBye)) - } - { - const prefix string = ",\"FocusPlays\":" - out.RawString(prefix) - out.String(string(in.FocusPlays)) - } - { - const prefix string = ",\"DoubleTeam\":" - out.RawString(prefix) - out.Int(int(in.DoubleTeam)) - } - { - const prefix string = ",\"DefFormation1\":" - out.RawString(prefix) - out.String(string(in.DefFormation1)) - } - { - const prefix string = ",\"DefFormation1RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation1RunToPass)) - } - { - const prefix string = ",\"DefFormation1BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation1BlitzWeight)) - } - { - const prefix string = ",\"DefFormation1BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation1BlitzAggression)) - } - { - const prefix string = ",\"DefFormation2\":" - out.RawString(prefix) - out.String(string(in.DefFormation2)) - } - { - const prefix string = ",\"DefFormation2RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation2RunToPass)) - } - { - const prefix string = ",\"DefFormation2BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation2BlitzWeight)) - } - { - const prefix string = ",\"DefFormation2BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation2BlitzAggression)) - } - { - const prefix string = ",\"DefFormation3\":" - out.RawString(prefix) - out.String(string(in.DefFormation3)) - } - { - const prefix string = ",\"DefFormation3RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation3RunToPass)) - } - { - const prefix string = ",\"DefFormation3BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation3BlitzWeight)) - } - { - const prefix string = ",\"DefFormation3BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation3BlitzAggression)) - } - { - const prefix string = ",\"DefFormation4\":" - out.RawString(prefix) - out.String(string(in.DefFormation4)) - } - { - const prefix string = ",\"DefFormation4RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation4RunToPass)) - } - { - const prefix string = ",\"DefFormation4BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation4BlitzWeight)) - } - { - const prefix string = ",\"DefFormation4BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation4BlitzAggression)) - } - { - const prefix string = ",\"DefFormation5\":" - out.RawString(prefix) - out.String(string(in.DefFormation5)) - } - { - const prefix string = ",\"DefFormation5RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation5RunToPass)) - } - { - const prefix string = ",\"DefFormation5BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation5BlitzWeight)) - } - { - const prefix string = ",\"DefFormation5BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation5BlitzAggression)) - } - { - const prefix string = ",\"OffFormation1Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation1Name)) - } - { - const prefix string = ",\"OffForm1Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm1Weight)) - } - { - const prefix string = ",\"OffForm1TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm1TraditionalRun)) - } - { - const prefix string = ",\"OffForm1OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm1OptionRun)) - } - { - const prefix string = ",\"OffForm1Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm1Pass)) - } - { - const prefix string = ",\"OffForm1RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm1RPO)) - } - { - const prefix string = ",\"OffFormation2Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation2Name)) - } - { - const prefix string = ",\"OffForm2Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm2Weight)) - } - { - const prefix string = ",\"OffForm2TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm2TraditionalRun)) - } - { - const prefix string = ",\"OffForm2OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm2OptionRun)) - } - { - const prefix string = ",\"OffForm2Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm2Pass)) - } - { - const prefix string = ",\"OffForm2RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm2RPO)) - } - { - const prefix string = ",\"OffFormation3Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation3Name)) - } - { - const prefix string = ",\"OffForm3Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm3Weight)) - } - { - const prefix string = ",\"OffForm3TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm3TraditionalRun)) - } - { - const prefix string = ",\"OffForm3OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm3OptionRun)) - } - { - const prefix string = ",\"OffForm3Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm3Pass)) - } - { - const prefix string = ",\"OffForm3RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm3RPO)) - } - { - const prefix string = ",\"OffFormation4Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation4Name)) - } - { - const prefix string = ",\"OffForm4Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm4Weight)) - } - { - const prefix string = ",\"OffForm4TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm4TraditionalRun)) - } - { - const prefix string = ",\"OffForm4OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm4OptionRun)) - } - { - const prefix string = ",\"OffForm4Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm4Pass)) - } - { - const prefix string = ",\"OffForm4RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm4RPO)) - } - { - const prefix string = ",\"OffFormation5Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation5Name)) - } - { - const prefix string = ",\"OffForm5Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm5Weight)) - } - { - const prefix string = ",\"OffForm5TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm5TraditionalRun)) - } - { - const prefix string = ",\"OffForm5OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm5OptionRun)) - } - { - const prefix string = ",\"OffForm5Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm5Pass)) - } - { - const prefix string = ",\"OffForm5RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm5RPO)) - } - { - const prefix string = ",\"RunnerDistributionQB\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionQB)) - } - { - const prefix string = ",\"RunnerDistributionRB1\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB1)) - } - { - const prefix string = ",\"RunnerDistributionRB2\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB2)) - } - { - const prefix string = ",\"RunnerDistributionRB3\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB3)) - } - { - const prefix string = ",\"RunnerDistributionFB1\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionFB1)) - } - { - const prefix string = ",\"RunnerDistributionFB2\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionFB2)) - } - { - const prefix string = ",\"RunnerDistributionWR\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionWR)) - } - { - const prefix string = ",\"RunnerDistributionWRPosition\":" - out.RawString(prefix) - out.String(string(in.RunnerDistributionWRPosition)) - } - { - const prefix string = ",\"RunnerDistributionWRID\":" - out.RawString(prefix) - out.Uint(uint(in.RunnerDistributionWRID)) - } - { - const prefix string = ",\"RunOutsideLeft\":" - out.RawString(prefix) - out.Int(int(in.RunOutsideLeft)) - } - { - const prefix string = ",\"RunOutsideRight\":" - out.RawString(prefix) - out.Int(int(in.RunOutsideRight)) - } - { - const prefix string = ",\"RunInsideLeft\":" - out.RawString(prefix) - out.Int(int(in.RunInsideLeft)) - } - { - const prefix string = ",\"RunInsideRight\":" - out.RawString(prefix) - out.Int(int(in.RunInsideRight)) - } - { - const prefix string = ",\"RunPowerLeft\":" - out.RawString(prefix) - out.Int(int(in.RunPowerLeft)) - } - { - const prefix string = ",\"RunPowerRight\":" - out.RawString(prefix) - out.Int(int(in.RunPowerRight)) - } - { - const prefix string = ",\"RunDrawLeft\":" - out.RawString(prefix) - out.Int(int(in.RunDrawLeft)) - } - { - const prefix string = ",\"RunDrawRight\":" - out.RawString(prefix) - out.Int(int(in.RunDrawRight)) - } - { - const prefix string = ",\"ReadOptionLeft\":" - out.RawString(prefix) - out.Int(int(in.ReadOptionLeft)) - } - { - const prefix string = ",\"ReadOptionRight\":" - out.RawString(prefix) - out.Int(int(in.ReadOptionRight)) - } - { - const prefix string = ",\"SpeedOptionLeft\":" - out.RawString(prefix) - out.Int(int(in.SpeedOptionLeft)) - } - { - const prefix string = ",\"SpeedOptionRight\":" - out.RawString(prefix) - out.Int(int(in.SpeedOptionRight)) - } - { - const prefix string = ",\"InvertedOptionLeft\":" - out.RawString(prefix) - out.Int(int(in.InvertedOptionLeft)) - } - { - const prefix string = ",\"InvertedOptionRight\":" - out.RawString(prefix) - out.Int(int(in.InvertedOptionRight)) - } - { - const prefix string = ",\"TripleOptionLeft\":" - out.RawString(prefix) - out.Int(int(in.TripleOptionLeft)) - } - { - const prefix string = ",\"TripleOptionRight\":" - out.RawString(prefix) - out.Int(int(in.TripleOptionRight)) - } - { - const prefix string = ",\"PassQuick\":" - out.RawString(prefix) - out.Int(int(in.PassQuick)) - } - { - const prefix string = ",\"PassShort\":" - out.RawString(prefix) - out.Int(int(in.PassShort)) - } - { - const prefix string = ",\"PassLong\":" - out.RawString(prefix) - out.Int(int(in.PassLong)) - } - { - const prefix string = ",\"PassDeep\":" - out.RawString(prefix) - out.Int(int(in.PassDeep)) - } - { - const prefix string = ",\"PassScreen\":" - out.RawString(prefix) - out.Int(int(in.PassScreen)) - } - { - const prefix string = ",\"PassPAShort\":" - out.RawString(prefix) - out.Int(int(in.PassPAShort)) - } - { - const prefix string = ",\"PassPAMedium\":" - out.RawString(prefix) - out.Int(int(in.PassPAMedium)) - } - { - const prefix string = ",\"PassPALong\":" - out.RawString(prefix) - out.Int(int(in.PassPALong)) - } - { - const prefix string = ",\"PassPADeep\":" - out.RawString(prefix) - out.Int(int(in.PassPADeep)) - } - { - const prefix string = ",\"LeftVsRight\":" - out.RawString(prefix) - out.Int(int(in.LeftVsRight)) - } - { - const prefix string = ",\"ChoiceOutside\":" - out.RawString(prefix) - out.Int(int(in.ChoiceOutside)) - } - { - const prefix string = ",\"ChoiceInside\":" - out.RawString(prefix) - out.Int(int(in.ChoiceInside)) - } - { - const prefix string = ",\"ChoicePower\":" - out.RawString(prefix) - out.Int(int(in.ChoicePower)) - } - { - const prefix string = ",\"PeekOutside\":" - out.RawString(prefix) - out.Int(int(in.PeekOutside)) - } - { - const prefix string = ",\"PeekInside\":" - out.RawString(prefix) - out.Int(int(in.PeekInside)) - } - { - const prefix string = ",\"PeekPower\":" - out.RawString(prefix) - out.Int(int(in.PeekPower)) - } - { - const prefix string = ",\"TargetingWR1\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR1)) - } - { - const prefix string = ",\"TargetDepthWR1\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR1)) - } - { - const prefix string = ",\"TargetingWR2\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR2)) - } - { - const prefix string = ",\"TargetDepthWR2\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR2)) - } - { - const prefix string = ",\"TargetingWR3\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR3)) - } - { - const prefix string = ",\"TargetDepthWR3\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR3)) - } - { - const prefix string = ",\"TargetingWR4\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR4)) - } - { - const prefix string = ",\"TargetDepthWR4\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR4)) - } - { - const prefix string = ",\"TargetingWR5\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR5)) - } - { - const prefix string = ",\"TargetDepthWR5\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR5)) - } - { - const prefix string = ",\"TargetingTE1\":" - out.RawString(prefix) - out.Int(int(in.TargetingTE1)) - } - { - const prefix string = ",\"TargetDepthTE1\":" - out.RawString(prefix) - out.String(string(in.TargetDepthTE1)) - } - { - const prefix string = ",\"TargetingTE2\":" - out.RawString(prefix) - out.Int(int(in.TargetingTE2)) - } - { - const prefix string = ",\"TargetDepthTE2\":" - out.RawString(prefix) - out.String(string(in.TargetDepthTE2)) - } - { - const prefix string = ",\"TargetingTE3\":" - out.RawString(prefix) - out.Int(int(in.TargetingTE3)) - } - { - const prefix string = ",\"TargetDepthTE3\":" - out.RawString(prefix) - out.String(string(in.TargetDepthTE3)) - } - { - const prefix string = ",\"TargetingRB1\":" - out.RawString(prefix) - out.Int(int(in.TargetingRB1)) - } - { - const prefix string = ",\"TargetDepthRB1\":" - out.RawString(prefix) - out.String(string(in.TargetDepthRB1)) - } - { - const prefix string = ",\"TargetingRB2\":" - out.RawString(prefix) - out.Int(int(in.TargetingRB2)) - } - { - const prefix string = ",\"TargetDepthRB2\":" - out.RawString(prefix) - out.String(string(in.TargetDepthRB2)) - } - { - const prefix string = ",\"TargetingFB1\":" - out.RawString(prefix) - out.Int(int(in.TargetingFB1)) - } - { - const prefix string = ",\"TargetDepthFB1\":" - out.RawString(prefix) - out.String(string(in.TargetDepthFB1)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, out *structs.NFLTeam) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "ConferenceID": - out.ConferenceID = uint(in.Uint()) - case "Conference": - out.Conference = string(in.String()) - case "DivisionID": - out.DivisionID = uint(in.Uint()) - case "Division": - out.Division = string(in.String()) - case "NFLOwnerID": - out.NFLOwnerID = uint(in.Uint()) - case "NFLOwnerName": - out.NFLOwnerName = string(in.String()) - case "NFLCoachID": - out.NFLCoachID = uint(in.Uint()) - case "NFLCoachName": - out.NFLCoachName = string(in.String()) - case "NFLGMID": - out.NFLGMID = uint(in.Uint()) - case "NFLGMName": - out.NFLGMName = string(in.String()) - case "NFLAssistantID": - out.NFLAssistantID = uint(in.Uint()) - case "NFLAssistantName": - out.NFLAssistantName = string(in.String()) - case "WaiverOrder": - out.WaiverOrder = uint(in.Uint()) - case "UsedTagThisSeason": - out.UsedTagThisSeason = bool(in.Bool()) - case "Capsheet": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &out.Capsheet) - case "Contracts": - if in.IsNull() { - in.Skip() - out.Contracts = nil - } else { - in.Delim('[') - if out.Contracts == nil { - if !in.IsDelim(']') { - out.Contracts = make([]structs.NFLContract, 0, 0) - } else { - out.Contracts = []structs.NFLContract{} - } - } else { - out.Contracts = (out.Contracts)[:0] - } - for !in.IsDelim(']') { - var v175 structs.NFLContract - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v175) - out.Contracts = append(out.Contracts, v175) - in.WantComma() - } - in.Delim(']') - } - case "DraftPicks": - if in.IsNull() { - in.Skip() - out.DraftPicks = nil - } else { - in.Delim('[') - if out.DraftPicks == nil { - if !in.IsDelim(']') { - out.DraftPicks = make([]structs.NFLDraftPick, 0, 0) - } else { - out.DraftPicks = []structs.NFLDraftPick{} - } - } else { - out.DraftPicks = (out.DraftPicks)[:0] - } - for !in.IsDelim(']') { - var v176 structs.NFLDraftPick - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v176) - out.DraftPicks = append(out.DraftPicks, v176) - in.WantComma() - } - in.Delim(']') - } - case "TeamStats": - if in.IsNull() { - in.Skip() - out.TeamStats = nil - } else { - in.Delim('[') - if out.TeamStats == nil { - if !in.IsDelim(']') { - out.TeamStats = make([]structs.NFLTeamStats, 0, 0) - } else { - out.TeamStats = []structs.NFLTeamStats{} - } - } else { - out.TeamStats = (out.TeamStats)[:0] - } - for !in.IsDelim(']') { - var v177 structs.NFLTeamStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &v177) - out.TeamStats = append(out.TeamStats, v177) - in.WantComma() - } - in.Delim(']') - } - case "TeamSeasonStats": - if in.IsNull() { - in.Skip() - out.TeamSeasonStats = nil - } else { - in.Delim('[') - if out.TeamSeasonStats == nil { - if !in.IsDelim(']') { - out.TeamSeasonStats = make([]structs.NFLTeamSeasonStats, 0, 0) - } else { - out.TeamSeasonStats = []structs.NFLTeamSeasonStats{} - } - } else { - out.TeamSeasonStats = (out.TeamSeasonStats)[:0] - } - for !in.IsDelim(']') { - var v178 structs.NFLTeamSeasonStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v178) - out.TeamSeasonStats = append(out.TeamSeasonStats, v178) - in.WantComma() - } - in.Delim(']') - } - case "TeamDepthChart": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, &out.TeamDepthChart) - case "TeamGameplan": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &out.TeamGameplan) - case "Standings": - if in.IsNull() { - in.Skip() - out.Standings = nil - } else { - in.Delim('[') - if out.Standings == nil { - if !in.IsDelim(']') { - out.Standings = make([]structs.NFLStandings, 0, 0) - } else { - out.Standings = []structs.NFLStandings{} - } - } else { - out.Standings = (out.Standings)[:0] - } - for !in.IsDelim(']') { - var v179 structs.NFLStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v179) - out.Standings = append(out.Standings, v179) - in.WantComma() - } - in.Delim(']') - } - case "TeamName": - out.TeamName = string(in.String()) - case "Mascot": - out.Mascot = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "Coach": - out.Coach = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "Country": - out.Country = string(in.String()) - case "StadiumID": - out.StadiumID = uint(in.Uint()) - case "Stadium": - out.Stadium = string(in.String()) - case "StadiumCapacity": - out.StadiumCapacity = int(in.Int()) - case "RecordAttendance": - out.RecordAttendance = int(in.Int()) - case "Enrollment": - out.Enrollment = int(in.Int()) - case "FirstPlayed": - out.FirstPlayed = int(in.Int()) - case "ColorOne": - out.ColorOne = string(in.String()) - case "ColorTwo": - out.ColorTwo = string(in.String()) - case "ColorThree": - out.ColorThree = string(in.String()) - case "DiscordID": - out.DiscordID = string(in.String()) - case "OverallGrade": - out.OverallGrade = string(in.String()) - case "OffenseGrade": - out.OffenseGrade = string(in.String()) - case "DefenseGrade": - out.DefenseGrade = string(in.String()) - case "SpecialTeamsGrade": - out.SpecialTeamsGrade = string(in.String()) - case "PenaltyMarks": - out.PenaltyMarks = uint8(in.Uint8()) - case "JerseyType": - out.JerseyType = uint8(in.Uint8()) - case "LastLogin": - if data := in.Raw(); in.Ok() { - in.AddError((out.LastLogin).UnmarshalJSON(data)) - } - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer, in structs.NFLTeam) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"ConferenceID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.ConferenceID)) - } - { - const prefix string = ",\"Conference\":" - out.RawString(prefix) - out.String(string(in.Conference)) - } - { - const prefix string = ",\"DivisionID\":" - out.RawString(prefix) - out.Uint(uint(in.DivisionID)) - } - { - const prefix string = ",\"Division\":" - out.RawString(prefix) - out.String(string(in.Division)) - } - { - const prefix string = ",\"NFLOwnerID\":" - out.RawString(prefix) - out.Uint(uint(in.NFLOwnerID)) - } - { - const prefix string = ",\"NFLOwnerName\":" - out.RawString(prefix) - out.String(string(in.NFLOwnerName)) - } - { - const prefix string = ",\"NFLCoachID\":" - out.RawString(prefix) - out.Uint(uint(in.NFLCoachID)) - } - { - const prefix string = ",\"NFLCoachName\":" - out.RawString(prefix) - out.String(string(in.NFLCoachName)) - } - { - const prefix string = ",\"NFLGMID\":" - out.RawString(prefix) - out.Uint(uint(in.NFLGMID)) - } - { - const prefix string = ",\"NFLGMName\":" - out.RawString(prefix) - out.String(string(in.NFLGMName)) - } - { - const prefix string = ",\"NFLAssistantID\":" - out.RawString(prefix) - out.Uint(uint(in.NFLAssistantID)) - } - { - const prefix string = ",\"NFLAssistantName\":" - out.RawString(prefix) - out.String(string(in.NFLAssistantName)) - } - { - const prefix string = ",\"WaiverOrder\":" - out.RawString(prefix) - out.Uint(uint(in.WaiverOrder)) - } - { - const prefix string = ",\"UsedTagThisSeason\":" - out.RawString(prefix) - out.Bool(bool(in.UsedTagThisSeason)) - } - { - const prefix string = ",\"Capsheet\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, in.Capsheet) - } - { - const prefix string = ",\"Contracts\":" - out.RawString(prefix) - if in.Contracts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v180, v181 := range in.Contracts { - if v180 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v181) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"DraftPicks\":" - out.RawString(prefix) - if in.DraftPicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v182, v183 := range in.DraftPicks { - if v182 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v183) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TeamStats\":" - out.RawString(prefix) - if in.TeamStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v184, v185 := range in.TeamStats { - if v184 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, v185) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TeamSeasonStats\":" - out.RawString(prefix) - if in.TeamSeasonStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v186, v187 := range in.TeamSeasonStats { - if v186 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v187) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TeamDepthChart\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, in.TeamDepthChart) - } - { - const prefix string = ",\"TeamGameplan\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, in.TeamGameplan) - } - { - const prefix string = ",\"Standings\":" - out.RawString(prefix) - if in.Standings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v188, v189 := range in.Standings { - if v188 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v189) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TeamName\":" - out.RawString(prefix) - out.String(string(in.TeamName)) - } - { - const prefix string = ",\"Mascot\":" - out.RawString(prefix) - out.String(string(in.Mascot)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"Coach\":" - out.RawString(prefix) - out.String(string(in.Coach)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"Country\":" - out.RawString(prefix) - out.String(string(in.Country)) - } - { - const prefix string = ",\"StadiumID\":" - out.RawString(prefix) - out.Uint(uint(in.StadiumID)) - } - { - const prefix string = ",\"Stadium\":" - out.RawString(prefix) - out.String(string(in.Stadium)) - } - { - const prefix string = ",\"StadiumCapacity\":" - out.RawString(prefix) - out.Int(int(in.StadiumCapacity)) - } - { - const prefix string = ",\"RecordAttendance\":" - out.RawString(prefix) - out.Int(int(in.RecordAttendance)) - } - { - const prefix string = ",\"Enrollment\":" - out.RawString(prefix) - out.Int(int(in.Enrollment)) - } - { - const prefix string = ",\"FirstPlayed\":" - out.RawString(prefix) - out.Int(int(in.FirstPlayed)) - } - { - const prefix string = ",\"ColorOne\":" - out.RawString(prefix) - out.String(string(in.ColorOne)) - } - { - const prefix string = ",\"ColorTwo\":" - out.RawString(prefix) - out.String(string(in.ColorTwo)) - } - { - const prefix string = ",\"ColorThree\":" - out.RawString(prefix) - out.String(string(in.ColorThree)) - } - { - const prefix string = ",\"DiscordID\":" - out.RawString(prefix) - out.String(string(in.DiscordID)) - } - { - const prefix string = ",\"OverallGrade\":" - out.RawString(prefix) - out.String(string(in.OverallGrade)) - } - { - const prefix string = ",\"OffenseGrade\":" - out.RawString(prefix) - out.String(string(in.OffenseGrade)) - } - { - const prefix string = ",\"DefenseGrade\":" - out.RawString(prefix) - out.String(string(in.DefenseGrade)) - } - { - const prefix string = ",\"SpecialTeamsGrade\":" - out.RawString(prefix) - out.String(string(in.SpecialTeamsGrade)) - } - { - const prefix string = ",\"PenaltyMarks\":" - out.RawString(prefix) - out.Uint8(uint8(in.PenaltyMarks)) - } - { - const prefix string = ",\"JerseyType\":" - out.RawString(prefix) - out.Uint8(uint8(in.JerseyType)) - } - { - const prefix string = ",\"LastLogin\":" - out.RawString(prefix) - out.Raw((in.LastLogin).MarshalJSON()) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in *jlexer.Lexer, out *structs.NFLTeamSeasonStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = uint(in.Uint()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Year": - out.Year = int(in.Int()) - case "GamesPlayed": - out.GamesPlayed = int(in.Int()) - case "TotalOffensiveYards": - out.TotalOffensiveYards = int(in.Int()) - case "TotalYardsAllowed": - out.TotalYardsAllowed = int(in.Int()) - case "Fumbles": - out.Fumbles = int(in.Int()) - case "QBRating": - out.QBRating = float64(in.Float64()) - case "Tackles": - out.Tackles = float64(in.Float64()) - case "Turnovers": - out.Turnovers = int(in.Int()) - case "PointsScored": - out.PointsScored = int(in.Int()) - case "PointsAgainst": - out.PointsAgainst = int(in.Int()) - case "TwoPointTries": - out.TwoPointTries = int(in.Int()) - case "TwoPointSucceed": - out.TwoPointSucceed = int(in.Int()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassingAttempts": - out.PassingAttempts = int(in.Int()) - case "PassingCompletions": - out.PassingCompletions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "PassingTouchdowns": - out.PassingTouchdowns = int(in.Int()) - case "PassingInterceptions": - out.PassingInterceptions = int(in.Int()) - case "QBSacks": - out.QBSacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingYardsPerAttempt": - out.RushingYardsPerAttempt = float64(in.Float64()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "RushingTouchdowns": - out.RushingTouchdowns = int(in.Int()) - case "RushingFumbles": - out.RushingFumbles = int(in.Int()) - case "ReceivingTargets": - out.ReceivingTargets = int(in.Int()) - case "ReceivingCatches": - out.ReceivingCatches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "YardsPerCatch": - out.YardsPerCatch = float64(in.Float64()) - case "ReceivingTouchdowns": - out.ReceivingTouchdowns = int(in.Int()) - case "ReceivingFumbles": - out.ReceivingFumbles = int(in.Int()) - case "PassingYardsAllowed": - out.PassingYardsAllowed = int(in.Int()) - case "PassingTDsAllowed": - out.PassingTDsAllowed = int(in.Int()) - case "PassingCompletionsAllowed": - out.PassingCompletionsAllowed = int(in.Int()) - case "RushingYardsAllowed": - out.RushingYardsAllowed = int(in.Int()) - case "RushingTDsAllowed": - out.RushingTDsAllowed = int(in.Int()) - case "RushingYardsPerAttemptAllowed": - out.RushingYardsPerAttemptAllowed = float64(in.Float64()) - case "SoloTackles": - out.SoloTackles = int(in.Int()) - case "AssistedTackles": - out.AssistedTackles = int(in.Int()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "DefensiveSacks": - out.DefensiveSacks = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "FumblesRecovered": - out.FumblesRecovered = int(in.Int()) - case "DefensiveInterceptions": - out.DefensiveInterceptions = int(in.Int()) - case "TurnoverYards": - out.TurnoverYards = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "ExtraPointPercentage": - out.ExtraPointPercentage = float64(in.Float64()) - case "FieldGoalsMade": - out.FieldGoalsMade = int(in.Int()) - case "FieldGoalsAttempted": - out.FieldGoalsAttempted = int(in.Int()) - case "FieldGoalsPercentage": - out.FieldGoalsPercentage = float64(in.Float64()) - case "LongestFieldGoal": - out.LongestFieldGoal = int(in.Int()) - case "KickoffTBs": - out.KickoffTBs = int(in.Int()) - case "PuntTBs": - out.PuntTBs = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "PuntYards": - out.PuntYards = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "PuntAverage": - out.PuntAverage = float64(in.Float64()) - case "Inside20YardLine": - out.Inside20YardLine = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "OffensivePenalties": - out.OffensivePenalties = int(in.Int()) - case "DefensivePenalties": - out.DefensivePenalties = int(in.Int()) - case "OffPenaltyYards": - out.OffPenaltyYards = int(in.Int()) - case "DefPenaltyYards": - out.DefPenaltyYards = int(in.Int()) - case "Score1Q": - out.Score1Q = int(in.Int()) - case "Score2Q": - out.Score2Q = int(in.Int()) - case "Score3Q": - out.Score3Q = int(in.Int()) - case "Score4Q": - out.Score4Q = int(in.Int()) - case "Score5Q": - out.Score5Q = int(in.Int()) - case "Score6Q": - out.Score6Q = int(in.Int()) - case "Score7Q": - out.Score7Q = int(in.Int()) - case "ScoreOT": - out.ScoreOT = int(in.Int()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "OffensiveSnaps": - out.OffensiveSnaps = uint16(in.Uint16()) - case "DefensiveSnaps": - out.DefensiveSnaps = uint16(in.Uint16()) - case "SpecialTeamSnaps": - out.SpecialTeamSnaps = uint16(in.Uint16()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out *jwriter.Writer, in structs.NFLTeamSeasonStats) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Int(int(in.Year)) - } - { - const prefix string = ",\"GamesPlayed\":" - out.RawString(prefix) - out.Int(int(in.GamesPlayed)) - } - { - const prefix string = ",\"TotalOffensiveYards\":" - out.RawString(prefix) - out.Int(int(in.TotalOffensiveYards)) - } - { - const prefix string = ",\"TotalYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.TotalYardsAllowed)) - } - { - const prefix string = ",\"Fumbles\":" - out.RawString(prefix) - out.Int(int(in.Fumbles)) - } - { - const prefix string = ",\"QBRating\":" - out.RawString(prefix) - out.Float64(float64(in.QBRating)) - } - { - const prefix string = ",\"Tackles\":" - out.RawString(prefix) - out.Float64(float64(in.Tackles)) - } - { - const prefix string = ",\"Turnovers\":" - out.RawString(prefix) - out.Int(int(in.Turnovers)) - } - { - const prefix string = ",\"PointsScored\":" - out.RawString(prefix) - out.Int(int(in.PointsScored)) - } - { - const prefix string = ",\"PointsAgainst\":" - out.RawString(prefix) - out.Int(int(in.PointsAgainst)) - } - { - const prefix string = ",\"TwoPointTries\":" - out.RawString(prefix) - out.Int(int(in.TwoPointTries)) - } - { - const prefix string = ",\"TwoPointSucceed\":" - out.RawString(prefix) - out.Int(int(in.TwoPointSucceed)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassingAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassingAttempts)) - } - { - const prefix string = ",\"PassingCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassingCompletions)) - } - { - const prefix string = ",\"LongestPass\":" - out.RawString(prefix) - out.Int(int(in.LongestPass)) - } - { - const prefix string = ",\"PassingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.PassingTouchdowns)) - } - { - const prefix string = ",\"PassingInterceptions\":" - out.RawString(prefix) - out.Int(int(in.PassingInterceptions)) - } - { - const prefix string = ",\"QBSacks\":" - out.RawString(prefix) - out.Int(int(in.QBSacks)) - } - { - const prefix string = ",\"RushAttempts\":" - out.RawString(prefix) - out.Int(int(in.RushAttempts)) - } - { - const prefix string = ",\"RushingYards\":" - out.RawString(prefix) - out.Int(int(in.RushingYards)) - } - { - const prefix string = ",\"RushingYardsPerAttempt\":" - out.RawString(prefix) - out.Float64(float64(in.RushingYardsPerAttempt)) - } - { - const prefix string = ",\"LongestRush\":" - out.RawString(prefix) - out.Int(int(in.LongestRush)) - } - { - const prefix string = ",\"RushingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.RushingTouchdowns)) - } - { - const prefix string = ",\"RushingFumbles\":" - out.RawString(prefix) - out.Int(int(in.RushingFumbles)) - } - { - const prefix string = ",\"ReceivingTargets\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTargets)) - } - { - const prefix string = ",\"ReceivingCatches\":" - out.RawString(prefix) - out.Int(int(in.ReceivingCatches)) - } - { - const prefix string = ",\"ReceivingYards\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYards)) - } - { - const prefix string = ",\"YardsPerCatch\":" - out.RawString(prefix) - out.Float64(float64(in.YardsPerCatch)) - } - { - const prefix string = ",\"ReceivingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTouchdowns)) - } - { - const prefix string = ",\"ReceivingFumbles\":" - out.RawString(prefix) - out.Int(int(in.ReceivingFumbles)) - } - { - const prefix string = ",\"PassingYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsAllowed)) - } - { - const prefix string = ",\"PassingTDsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingTDsAllowed)) - } - { - const prefix string = ",\"PassingCompletionsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingCompletionsAllowed)) - } - { - const prefix string = ",\"RushingYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsAllowed)) - } - { - const prefix string = ",\"RushingTDsAllowed\":" - out.RawString(prefix) - out.Int(int(in.RushingTDsAllowed)) - } - { - const prefix string = ",\"RushingYardsPerAttemptAllowed\":" - out.RawString(prefix) - out.Float64(float64(in.RushingYardsPerAttemptAllowed)) - } - { - const prefix string = ",\"SoloTackles\":" - out.RawString(prefix) - out.Int(int(in.SoloTackles)) - } - { - const prefix string = ",\"AssistedTackles\":" - out.RawString(prefix) - out.Int(int(in.AssistedTackles)) - } - { - const prefix string = ",\"TacklesForLoss\":" - out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) - } - { - const prefix string = ",\"DefensiveSacks\":" - out.RawString(prefix) - out.Float64(float64(in.DefensiveSacks)) - } - { - const prefix string = ",\"ForcedFumbles\":" - out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) - } - { - const prefix string = ",\"FumblesRecovered\":" - out.RawString(prefix) - out.Int(int(in.FumblesRecovered)) - } - { - const prefix string = ",\"DefensiveInterceptions\":" - out.RawString(prefix) - out.Int(int(in.DefensiveInterceptions)) - } - { - const prefix string = ",\"TurnoverYards\":" - out.RawString(prefix) - out.Int(int(in.TurnoverYards)) - } - { - const prefix string = ",\"DefensiveTDs\":" - out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) - } - { - const prefix string = ",\"Safeties\":" - out.RawString(prefix) - out.Int(int(in.Safeties)) - } - { - const prefix string = ",\"ExtraPointsMade\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) - } - { - const prefix string = ",\"ExtraPointsAttempted\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) - } - { - const prefix string = ",\"ExtraPointPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.ExtraPointPercentage)) - } - { - const prefix string = ",\"FieldGoalsMade\":" - out.RawString(prefix) - out.Int(int(in.FieldGoalsMade)) - } - { - const prefix string = ",\"FieldGoalsAttempted\":" - out.RawString(prefix) - out.Int(int(in.FieldGoalsAttempted)) - } - { - const prefix string = ",\"FieldGoalsPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.FieldGoalsPercentage)) - } - { - const prefix string = ",\"LongestFieldGoal\":" - out.RawString(prefix) - out.Int(int(in.LongestFieldGoal)) - } - { - const prefix string = ",\"KickoffTBs\":" - out.RawString(prefix) - out.Int(int(in.KickoffTBs)) - } - { - const prefix string = ",\"PuntTBs\":" - out.RawString(prefix) - out.Int(int(in.PuntTBs)) - } - { - const prefix string = ",\"Punts\":" - out.RawString(prefix) - out.Int(int(in.Punts)) - } - { - const prefix string = ",\"PuntYards\":" - out.RawString(prefix) - out.Int(int(in.PuntYards)) - } - { - const prefix string = ",\"PuntsInside20\":" - out.RawString(prefix) - out.Int(int(in.PuntsInside20)) - } - { - const prefix string = ",\"PuntAverage\":" - out.RawString(prefix) - out.Float64(float64(in.PuntAverage)) - } - { - const prefix string = ",\"Inside20YardLine\":" - out.RawString(prefix) - out.Int(int(in.Inside20YardLine)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"OffensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.OffensivePenalties)) - } - { - const prefix string = ",\"DefensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.DefensivePenalties)) - } - { - const prefix string = ",\"OffPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.OffPenaltyYards)) - } - { - const prefix string = ",\"DefPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.DefPenaltyYards)) - } - { - const prefix string = ",\"Score1Q\":" - out.RawString(prefix) - out.Int(int(in.Score1Q)) - } - { - const prefix string = ",\"Score2Q\":" - out.RawString(prefix) - out.Int(int(in.Score2Q)) - } - { - const prefix string = ",\"Score3Q\":" - out.RawString(prefix) - out.Int(int(in.Score3Q)) - } - { - const prefix string = ",\"Score4Q\":" - out.RawString(prefix) - out.Int(int(in.Score4Q)) - } - { - const prefix string = ",\"Score5Q\":" - out.RawString(prefix) - out.Int(int(in.Score5Q)) - } - { - const prefix string = ",\"Score6Q\":" - out.RawString(prefix) - out.Int(int(in.Score6Q)) - } - { - const prefix string = ",\"Score7Q\":" - out.RawString(prefix) - out.Int(int(in.Score7Q)) - } - { - const prefix string = ",\"ScoreOT\":" - out.RawString(prefix) - out.Int(int(in.ScoreOT)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"OffensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.OffensiveSnaps)) - } - { - const prefix string = ",\"DefensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.DefensiveSnaps)) - } - { - const prefix string = ",\"SpecialTeamSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.SpecialTeamSnaps)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in *jlexer.Lexer, out *structs.NFLTeamStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = uint(in.Uint()) - case "GameID": - out.GameID = uint(in.Uint()) - case "WeekID": - out.WeekID = uint(in.Uint()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "OpposingTeam": - out.OpposingTeam = string(in.String()) - case "IsPreseasonGame": - out.IsPreseasonGame = bool(in.Bool()) - case "PointsScored": - out.PointsScored = int(in.Int()) - case "PointsAgainst": - out.PointsAgainst = int(in.Int()) - case "TwoPointTries": - out.TwoPointTries = int(in.Int()) - case "TwoPointSucceed": - out.TwoPointSucceed = int(in.Int()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassingAttempts": - out.PassingAttempts = int(in.Int()) - case "PassingCompletions": - out.PassingCompletions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "PassingTouchdowns": - out.PassingTouchdowns = int(in.Int()) - case "PassingInterceptions": - out.PassingInterceptions = int(in.Int()) - case "QBRating": - out.QBRating = int(in.Int()) - case "QBSacks": - out.QBSacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingYardsPerAttempt": - out.RushingYardsPerAttempt = float64(in.Float64()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "RushingTouchdowns": - out.RushingTouchdowns = int(in.Int()) - case "RushingFumbles": - out.RushingFumbles = int(in.Int()) - case "ReceivingTargets": - out.ReceivingTargets = int(in.Int()) - case "ReceivingCatches": - out.ReceivingCatches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "YardsPerCatch": - out.YardsPerCatch = float64(in.Float64()) - case "ReceivingTouchdowns": - out.ReceivingTouchdowns = int(in.Int()) - case "ReceivingFumbles": - out.ReceivingFumbles = int(in.Int()) - case "PassingYardsAllowed": - out.PassingYardsAllowed = int(in.Int()) - case "PassingTDsAllowed": - out.PassingTDsAllowed = int(in.Int()) - case "PassingCompletionsAllowed": - out.PassingCompletionsAllowed = int(in.Int()) - case "RushingYardsAllowed": - out.RushingYardsAllowed = int(in.Int()) - case "RushingTDsAllowed": - out.RushingTDsAllowed = int(in.Int()) - case "RushingYardsPerAttemptAllowed": - out.RushingYardsPerAttemptAllowed = float64(in.Float64()) - case "SoloTackles": - out.SoloTackles = int(in.Int()) - case "AssistedTackles": - out.AssistedTackles = int(in.Int()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "DefensiveSacks": - out.DefensiveSacks = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "FumblesRecovered": - out.FumblesRecovered = int(in.Int()) - case "DefensiveInterceptions": - out.DefensiveInterceptions = int(in.Int()) - case "TurnoverYards": - out.TurnoverYards = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "ExtraPointPercentage": - out.ExtraPointPercentage = float64(in.Float64()) - case "FieldGoalsMade": - out.FieldGoalsMade = int(in.Int()) - case "FieldGoalsAttempted": - out.FieldGoalsAttempted = int(in.Int()) - case "FieldGoalsPercentage": - out.FieldGoalsPercentage = float64(in.Float64()) - case "LongestFieldGoal": - out.LongestFieldGoal = int(in.Int()) - case "KickoffTBs": - out.KickoffTBs = int(in.Int()) - case "PuntTBs": - out.PuntTBs = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "PuntYards": - out.PuntYards = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "PuntAverage": - out.PuntAverage = float64(in.Float64()) - case "Inside20YardLine": - out.Inside20YardLine = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "OffensivePenalties": - out.OffensivePenalties = int(in.Int()) - case "DefensivePenalties": - out.DefensivePenalties = int(in.Int()) - case "OffPenaltyYards": - out.OffPenaltyYards = int(in.Int()) - case "DefPenaltyYards": - out.DefPenaltyYards = int(in.Int()) - case "Score1Q": - out.Score1Q = int(in.Int()) - case "Score2Q": - out.Score2Q = int(in.Int()) - case "Score3Q": - out.Score3Q = int(in.Int()) - case "Score4Q": - out.Score4Q = int(in.Int()) - case "Score5Q": - out.Score5Q = int(in.Int()) - case "Score6Q": - out.Score6Q = int(in.Int()) - case "Score7Q": - out.Score7Q = int(in.Int()) - case "ScoreOT": - out.ScoreOT = int(in.Int()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "OffensiveSnaps": - out.OffensiveSnaps = uint16(in.Uint16()) - case "DefensiveSnaps": - out.DefensiveSnaps = uint16(in.Uint16()) - case "SpecialTeamSnaps": - out.SpecialTeamSnaps = uint16(in.Uint16()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out *jwriter.Writer, in structs.NFLTeamStats) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"GameID\":" - out.RawString(prefix) - out.Uint(uint(in.GameID)) - } - { - const prefix string = ",\"WeekID\":" - out.RawString(prefix) - out.Uint(uint(in.WeekID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"OpposingTeam\":" - out.RawString(prefix) - out.String(string(in.OpposingTeam)) - } - { - const prefix string = ",\"IsPreseasonGame\":" - out.RawString(prefix) - out.Bool(bool(in.IsPreseasonGame)) - } - { - const prefix string = ",\"PointsScored\":" - out.RawString(prefix) - out.Int(int(in.PointsScored)) - } - { - const prefix string = ",\"PointsAgainst\":" - out.RawString(prefix) - out.Int(int(in.PointsAgainst)) - } - { - const prefix string = ",\"TwoPointTries\":" - out.RawString(prefix) - out.Int(int(in.TwoPointTries)) - } - { - const prefix string = ",\"TwoPointSucceed\":" - out.RawString(prefix) - out.Int(int(in.TwoPointSucceed)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassingAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassingAttempts)) - } - { - const prefix string = ",\"PassingCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassingCompletions)) - } - { - const prefix string = ",\"LongestPass\":" - out.RawString(prefix) - out.Int(int(in.LongestPass)) - } - { - const prefix string = ",\"PassingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.PassingTouchdowns)) - } - { - const prefix string = ",\"PassingInterceptions\":" - out.RawString(prefix) - out.Int(int(in.PassingInterceptions)) - } - { - const prefix string = ",\"QBRating\":" - out.RawString(prefix) - out.Int(int(in.QBRating)) - } - { - const prefix string = ",\"QBSacks\":" - out.RawString(prefix) - out.Int(int(in.QBSacks)) - } - { - const prefix string = ",\"RushAttempts\":" - out.RawString(prefix) - out.Int(int(in.RushAttempts)) - } - { - const prefix string = ",\"RushingYards\":" - out.RawString(prefix) - out.Int(int(in.RushingYards)) - } - { - const prefix string = ",\"RushingYardsPerAttempt\":" - out.RawString(prefix) - out.Float64(float64(in.RushingYardsPerAttempt)) - } - { - const prefix string = ",\"LongestRush\":" - out.RawString(prefix) - out.Int(int(in.LongestRush)) - } - { - const prefix string = ",\"RushingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.RushingTouchdowns)) - } - { - const prefix string = ",\"RushingFumbles\":" - out.RawString(prefix) - out.Int(int(in.RushingFumbles)) - } - { - const prefix string = ",\"ReceivingTargets\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTargets)) - } - { - const prefix string = ",\"ReceivingCatches\":" - out.RawString(prefix) - out.Int(int(in.ReceivingCatches)) - } - { - const prefix string = ",\"ReceivingYards\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYards)) - } - { - const prefix string = ",\"YardsPerCatch\":" - out.RawString(prefix) - out.Float64(float64(in.YardsPerCatch)) - } - { - const prefix string = ",\"ReceivingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTouchdowns)) - } - { - const prefix string = ",\"ReceivingFumbles\":" - out.RawString(prefix) - out.Int(int(in.ReceivingFumbles)) - } - { - const prefix string = ",\"PassingYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsAllowed)) - } - { - const prefix string = ",\"PassingTDsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingTDsAllowed)) - } - { - const prefix string = ",\"PassingCompletionsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingCompletionsAllowed)) - } - { - const prefix string = ",\"RushingYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsAllowed)) - } - { - const prefix string = ",\"RushingTDsAllowed\":" - out.RawString(prefix) - out.Int(int(in.RushingTDsAllowed)) - } - { - const prefix string = ",\"RushingYardsPerAttemptAllowed\":" - out.RawString(prefix) - out.Float64(float64(in.RushingYardsPerAttemptAllowed)) - } - { - const prefix string = ",\"SoloTackles\":" - out.RawString(prefix) - out.Int(int(in.SoloTackles)) - } - { - const prefix string = ",\"AssistedTackles\":" - out.RawString(prefix) - out.Int(int(in.AssistedTackles)) - } - { - const prefix string = ",\"TacklesForLoss\":" - out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) - } - { - const prefix string = ",\"DefensiveSacks\":" - out.RawString(prefix) - out.Float64(float64(in.DefensiveSacks)) - } - { - const prefix string = ",\"ForcedFumbles\":" - out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) - } - { - const prefix string = ",\"FumblesRecovered\":" - out.RawString(prefix) - out.Int(int(in.FumblesRecovered)) - } - { - const prefix string = ",\"DefensiveInterceptions\":" - out.RawString(prefix) - out.Int(int(in.DefensiveInterceptions)) - } - { - const prefix string = ",\"TurnoverYards\":" - out.RawString(prefix) - out.Int(int(in.TurnoverYards)) - } - { - const prefix string = ",\"DefensiveTDs\":" - out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) - } - { - const prefix string = ",\"Safeties\":" - out.RawString(prefix) - out.Int(int(in.Safeties)) - } - { - const prefix string = ",\"ExtraPointsMade\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) - } - { - const prefix string = ",\"ExtraPointsAttempted\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) - } - { - const prefix string = ",\"ExtraPointPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.ExtraPointPercentage)) - } - { - const prefix string = ",\"FieldGoalsMade\":" - out.RawString(prefix) - out.Int(int(in.FieldGoalsMade)) - } - { - const prefix string = ",\"FieldGoalsAttempted\":" - out.RawString(prefix) - out.Int(int(in.FieldGoalsAttempted)) - } - { - const prefix string = ",\"FieldGoalsPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.FieldGoalsPercentage)) - } - { - const prefix string = ",\"LongestFieldGoal\":" - out.RawString(prefix) - out.Int(int(in.LongestFieldGoal)) - } - { - const prefix string = ",\"KickoffTBs\":" - out.RawString(prefix) - out.Int(int(in.KickoffTBs)) - } - { - const prefix string = ",\"PuntTBs\":" - out.RawString(prefix) - out.Int(int(in.PuntTBs)) - } - { - const prefix string = ",\"Punts\":" - out.RawString(prefix) - out.Int(int(in.Punts)) - } - { - const prefix string = ",\"PuntYards\":" - out.RawString(prefix) - out.Int(int(in.PuntYards)) - } - { - const prefix string = ",\"PuntsInside20\":" - out.RawString(prefix) - out.Int(int(in.PuntsInside20)) - } - { - const prefix string = ",\"PuntAverage\":" - out.RawString(prefix) - out.Float64(float64(in.PuntAverage)) - } - { - const prefix string = ",\"Inside20YardLine\":" - out.RawString(prefix) - out.Int(int(in.Inside20YardLine)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"OffensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.OffensivePenalties)) - } - { - const prefix string = ",\"DefensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.DefensivePenalties)) - } - { - const prefix string = ",\"OffPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.OffPenaltyYards)) - } - { - const prefix string = ",\"DefPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.DefPenaltyYards)) - } - { - const prefix string = ",\"Score1Q\":" - out.RawString(prefix) - out.Int(int(in.Score1Q)) - } - { - const prefix string = ",\"Score2Q\":" - out.RawString(prefix) - out.Int(int(in.Score2Q)) - } - { - const prefix string = ",\"Score3Q\":" - out.RawString(prefix) - out.Int(int(in.Score3Q)) - } - { - const prefix string = ",\"Score4Q\":" - out.RawString(prefix) - out.Int(int(in.Score4Q)) - } - { - const prefix string = ",\"Score5Q\":" - out.RawString(prefix) - out.Int(int(in.Score5Q)) - } - { - const prefix string = ",\"Score6Q\":" - out.RawString(prefix) - out.Int(int(in.Score6Q)) - } - { - const prefix string = ",\"Score7Q\":" - out.RawString(prefix) - out.Int(int(in.Score7Q)) - } - { - const prefix string = ",\"ScoreOT\":" - out.RawString(prefix) - out.Int(int(in.ScoreOT)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"OffensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.OffensiveSnaps)) - } - { - const prefix string = ",\"DefensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.DefensiveSnaps)) - } - { - const prefix string = ",\"SpecialTeamSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.SpecialTeamSnaps)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in *jlexer.Lexer, out *structs.NFLDraftPick) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Season": - out.Season = uint(in.Uint()) - case "DrafteeID": - out.DrafteeID = uint(in.Uint()) - case "DraftRound": - out.DraftRound = uint(in.Uint()) - case "DraftNumber": - out.DraftNumber = uint(in.Uint()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "OriginalTeamID": - out.OriginalTeamID = uint(in.Uint()) - case "OriginalTeam": - out.OriginalTeam = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "DraftValue": - out.DraftValue = float64(in.Float64()) - case "Notes": - out.Notes = string(in.String()) - case "SelectedPlayerID": - out.SelectedPlayerID = uint(in.Uint()) - case "SelectedPlayerName": - out.SelectedPlayerName = string(in.String()) - case "SelectedPlayerPosition": - out.SelectedPlayerPosition = string(in.String()) - case "IsCompensation": - out.IsCompensation = bool(in.Bool()) - case "IsVoid": - out.IsVoid = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out *jwriter.Writer, in structs.NFLDraftPick) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"Season\":" - out.RawString(prefix) - out.Uint(uint(in.Season)) - } - { - const prefix string = ",\"DrafteeID\":" - out.RawString(prefix) - out.Uint(uint(in.DrafteeID)) - } - { - const prefix string = ",\"DraftRound\":" - out.RawString(prefix) - out.Uint(uint(in.DraftRound)) - } - { - const prefix string = ",\"DraftNumber\":" - out.RawString(prefix) - out.Uint(uint(in.DraftNumber)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"OriginalTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.OriginalTeamID)) - } - { - const prefix string = ",\"OriginalTeam\":" - out.RawString(prefix) - out.String(string(in.OriginalTeam)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"DraftValue\":" - out.RawString(prefix) - out.Float64(float64(in.DraftValue)) - } - { - const prefix string = ",\"Notes\":" - out.RawString(prefix) - out.String(string(in.Notes)) - } - { - const prefix string = ",\"SelectedPlayerID\":" - out.RawString(prefix) - out.Uint(uint(in.SelectedPlayerID)) - } - { - const prefix string = ",\"SelectedPlayerName\":" - out.RawString(prefix) - out.String(string(in.SelectedPlayerName)) - } - { - const prefix string = ",\"SelectedPlayerPosition\":" - out.RawString(prefix) - out.String(string(in.SelectedPlayerPosition)) - } - { - const prefix string = ",\"IsCompensation\":" - out.RawString(prefix) - out.Bool(bool(in.IsCompensation)) - } - { - const prefix string = ",\"IsVoid\":" - out.RawString(prefix) - out.Bool(bool(in.IsVoid)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in *jlexer.Lexer, out *structs.CollegeGameplan) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = int(in.Int()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "OffRunToPassRatio": - out.OffRunToPassRatio = int(in.Int()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "BlitzSafeties": - out.BlitzSafeties = bool(in.Bool()) - case "BlitzCorners": - out.BlitzCorners = bool(in.Bool()) - case "LinebackerCoverage": - out.LinebackerCoverage = string(in.String()) - case "CornersCoverage": - out.CornersCoverage = string(in.String()) - case "SafetiesCoverage": - out.SafetiesCoverage = string(in.String()) - case "DiveFocus": - out.DiveFocus = int(in.Int()) - case "PitchFocus": - out.PitchFocus = int(in.Int()) - case "PrimaryHB": - out.PrimaryHB = int(in.Int()) - case "MaximumFGDistance": - out.MaximumFGDistance = int(in.Int()) - case "GoFor4AndShort": - out.GoFor4AndShort = int(in.Int()) - case "GoFor4AndLong": - out.GoFor4AndLong = int(in.Int()) - case "HasSchemePenalty": - out.HasSchemePenalty = bool(in.Bool()) - case "OffenseSchemePenalty": - out.OffenseSchemePenalty = uint(in.Uint()) - case "DefenseSchemePenalty": - out.DefenseSchemePenalty = uint(in.Uint()) - case "DefaultOffense": - out.DefaultOffense = bool(in.Bool()) - case "DefaultDefense": - out.DefaultDefense = bool(in.Bool()) - case "PreviousWeekBye": - out.PreviousWeekBye = bool(in.Bool()) - case "FocusPlays": - out.FocusPlays = string(in.String()) - case "DoubleTeam": - out.DoubleTeam = int(in.Int()) - case "DefFormation1": - out.DefFormation1 = string(in.String()) - case "DefFormation1RunToPass": - out.DefFormation1RunToPass = int(in.Int()) - case "DefFormation1BlitzWeight": - out.DefFormation1BlitzWeight = int(in.Int()) - case "DefFormation1BlitzAggression": - out.DefFormation1BlitzAggression = string(in.String()) - case "DefFormation2": - out.DefFormation2 = string(in.String()) - case "DefFormation2RunToPass": - out.DefFormation2RunToPass = int(in.Int()) - case "DefFormation2BlitzWeight": - out.DefFormation2BlitzWeight = int(in.Int()) - case "DefFormation2BlitzAggression": - out.DefFormation2BlitzAggression = string(in.String()) - case "DefFormation3": - out.DefFormation3 = string(in.String()) - case "DefFormation3RunToPass": - out.DefFormation3RunToPass = int(in.Int()) - case "DefFormation3BlitzWeight": - out.DefFormation3BlitzWeight = int(in.Int()) - case "DefFormation3BlitzAggression": - out.DefFormation3BlitzAggression = string(in.String()) - case "DefFormation4": - out.DefFormation4 = string(in.String()) - case "DefFormation4RunToPass": - out.DefFormation4RunToPass = int(in.Int()) - case "DefFormation4BlitzWeight": - out.DefFormation4BlitzWeight = int(in.Int()) - case "DefFormation4BlitzAggression": - out.DefFormation4BlitzAggression = string(in.String()) - case "DefFormation5": - out.DefFormation5 = string(in.String()) - case "DefFormation5RunToPass": - out.DefFormation5RunToPass = int(in.Int()) - case "DefFormation5BlitzWeight": - out.DefFormation5BlitzWeight = int(in.Int()) - case "DefFormation5BlitzAggression": - out.DefFormation5BlitzAggression = string(in.String()) - case "OffFormation1Name": - out.OffFormation1Name = string(in.String()) - case "OffForm1Weight": - out.OffForm1Weight = int(in.Int()) - case "OffForm1TraditionalRun": - out.OffForm1TraditionalRun = int(in.Int()) - case "OffForm1OptionRun": - out.OffForm1OptionRun = int(in.Int()) - case "OffForm1Pass": - out.OffForm1Pass = int(in.Int()) - case "OffForm1RPO": - out.OffForm1RPO = int(in.Int()) - case "OffFormation2Name": - out.OffFormation2Name = string(in.String()) - case "OffForm2Weight": - out.OffForm2Weight = int(in.Int()) - case "OffForm2TraditionalRun": - out.OffForm2TraditionalRun = int(in.Int()) - case "OffForm2OptionRun": - out.OffForm2OptionRun = int(in.Int()) - case "OffForm2Pass": - out.OffForm2Pass = int(in.Int()) - case "OffForm2RPO": - out.OffForm2RPO = int(in.Int()) - case "OffFormation3Name": - out.OffFormation3Name = string(in.String()) - case "OffForm3Weight": - out.OffForm3Weight = int(in.Int()) - case "OffForm3TraditionalRun": - out.OffForm3TraditionalRun = int(in.Int()) - case "OffForm3OptionRun": - out.OffForm3OptionRun = int(in.Int()) - case "OffForm3Pass": - out.OffForm3Pass = int(in.Int()) - case "OffForm3RPO": - out.OffForm3RPO = int(in.Int()) - case "OffFormation4Name": - out.OffFormation4Name = string(in.String()) - case "OffForm4Weight": - out.OffForm4Weight = int(in.Int()) - case "OffForm4TraditionalRun": - out.OffForm4TraditionalRun = int(in.Int()) - case "OffForm4OptionRun": - out.OffForm4OptionRun = int(in.Int()) - case "OffForm4Pass": - out.OffForm4Pass = int(in.Int()) - case "OffForm4RPO": - out.OffForm4RPO = int(in.Int()) - case "OffFormation5Name": - out.OffFormation5Name = string(in.String()) - case "OffForm5Weight": - out.OffForm5Weight = int(in.Int()) - case "OffForm5TraditionalRun": - out.OffForm5TraditionalRun = int(in.Int()) - case "OffForm5OptionRun": - out.OffForm5OptionRun = int(in.Int()) - case "OffForm5Pass": - out.OffForm5Pass = int(in.Int()) - case "OffForm5RPO": - out.OffForm5RPO = int(in.Int()) - case "RunnerDistributionQB": - out.RunnerDistributionQB = int(in.Int()) - case "RunnerDistributionRB1": - out.RunnerDistributionRB1 = int(in.Int()) - case "RunnerDistributionRB2": - out.RunnerDistributionRB2 = int(in.Int()) - case "RunnerDistributionRB3": - out.RunnerDistributionRB3 = int(in.Int()) - case "RunnerDistributionFB1": - out.RunnerDistributionFB1 = int(in.Int()) - case "RunnerDistributionFB2": - out.RunnerDistributionFB2 = int(in.Int()) - case "RunnerDistributionWR": - out.RunnerDistributionWR = int(in.Int()) - case "RunnerDistributionWRPosition": - out.RunnerDistributionWRPosition = string(in.String()) - case "RunnerDistributionWRID": - out.RunnerDistributionWRID = uint(in.Uint()) - case "RunOutsideLeft": - out.RunOutsideLeft = int(in.Int()) - case "RunOutsideRight": - out.RunOutsideRight = int(in.Int()) - case "RunInsideLeft": - out.RunInsideLeft = int(in.Int()) - case "RunInsideRight": - out.RunInsideRight = int(in.Int()) - case "RunPowerLeft": - out.RunPowerLeft = int(in.Int()) - case "RunPowerRight": - out.RunPowerRight = int(in.Int()) - case "RunDrawLeft": - out.RunDrawLeft = int(in.Int()) - case "RunDrawRight": - out.RunDrawRight = int(in.Int()) - case "ReadOptionLeft": - out.ReadOptionLeft = int(in.Int()) - case "ReadOptionRight": - out.ReadOptionRight = int(in.Int()) - case "SpeedOptionLeft": - out.SpeedOptionLeft = int(in.Int()) - case "SpeedOptionRight": - out.SpeedOptionRight = int(in.Int()) - case "InvertedOptionLeft": - out.InvertedOptionLeft = int(in.Int()) - case "InvertedOptionRight": - out.InvertedOptionRight = int(in.Int()) - case "TripleOptionLeft": - out.TripleOptionLeft = int(in.Int()) - case "TripleOptionRight": - out.TripleOptionRight = int(in.Int()) - case "PassQuick": - out.PassQuick = int(in.Int()) - case "PassShort": - out.PassShort = int(in.Int()) - case "PassLong": - out.PassLong = int(in.Int()) - case "PassDeep": - out.PassDeep = int(in.Int()) - case "PassScreen": - out.PassScreen = int(in.Int()) - case "PassPAShort": - out.PassPAShort = int(in.Int()) - case "PassPAMedium": - out.PassPAMedium = int(in.Int()) - case "PassPALong": - out.PassPALong = int(in.Int()) - case "PassPADeep": - out.PassPADeep = int(in.Int()) - case "LeftVsRight": - out.LeftVsRight = int(in.Int()) - case "ChoiceOutside": - out.ChoiceOutside = int(in.Int()) - case "ChoiceInside": - out.ChoiceInside = int(in.Int()) - case "ChoicePower": - out.ChoicePower = int(in.Int()) - case "PeekOutside": - out.PeekOutside = int(in.Int()) - case "PeekInside": - out.PeekInside = int(in.Int()) - case "PeekPower": - out.PeekPower = int(in.Int()) - case "TargetingWR1": - out.TargetingWR1 = int(in.Int()) - case "TargetDepthWR1": - out.TargetDepthWR1 = string(in.String()) - case "TargetingWR2": - out.TargetingWR2 = int(in.Int()) - case "TargetDepthWR2": - out.TargetDepthWR2 = string(in.String()) - case "TargetingWR3": - out.TargetingWR3 = int(in.Int()) - case "TargetDepthWR3": - out.TargetDepthWR3 = string(in.String()) - case "TargetingWR4": - out.TargetingWR4 = int(in.Int()) - case "TargetDepthWR4": - out.TargetDepthWR4 = string(in.String()) - case "TargetingWR5": - out.TargetingWR5 = int(in.Int()) - case "TargetDepthWR5": - out.TargetDepthWR5 = string(in.String()) - case "TargetingTE1": - out.TargetingTE1 = int(in.Int()) - case "TargetDepthTE1": - out.TargetDepthTE1 = string(in.String()) - case "TargetingTE2": - out.TargetingTE2 = int(in.Int()) - case "TargetDepthTE2": - out.TargetDepthTE2 = string(in.String()) - case "TargetingTE3": - out.TargetingTE3 = int(in.Int()) - case "TargetDepthTE3": - out.TargetDepthTE3 = string(in.String()) - case "TargetingRB1": - out.TargetingRB1 = int(in.Int()) - case "TargetDepthRB1": - out.TargetDepthRB1 = string(in.String()) - case "TargetingRB2": - out.TargetingRB2 = int(in.Int()) - case "TargetDepthRB2": - out.TargetDepthRB2 = string(in.String()) - case "TargetingFB1": - out.TargetingFB1 = int(in.Int()) - case "TargetDepthFB1": - out.TargetDepthFB1 = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out *jwriter.Writer, in structs.CollegeGameplan) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"OffRunToPassRatio\":" - out.RawString(prefix) - out.Int(int(in.OffRunToPassRatio)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"BlitzSafeties\":" - out.RawString(prefix) - out.Bool(bool(in.BlitzSafeties)) - } - { - const prefix string = ",\"BlitzCorners\":" - out.RawString(prefix) - out.Bool(bool(in.BlitzCorners)) - } - { - const prefix string = ",\"LinebackerCoverage\":" - out.RawString(prefix) - out.String(string(in.LinebackerCoverage)) - } - { - const prefix string = ",\"CornersCoverage\":" - out.RawString(prefix) - out.String(string(in.CornersCoverage)) - } - { - const prefix string = ",\"SafetiesCoverage\":" - out.RawString(prefix) - out.String(string(in.SafetiesCoverage)) - } - { - const prefix string = ",\"DiveFocus\":" - out.RawString(prefix) - out.Int(int(in.DiveFocus)) - } - { - const prefix string = ",\"PitchFocus\":" - out.RawString(prefix) - out.Int(int(in.PitchFocus)) - } - { - const prefix string = ",\"PrimaryHB\":" - out.RawString(prefix) - out.Int(int(in.PrimaryHB)) - } - { - const prefix string = ",\"MaximumFGDistance\":" - out.RawString(prefix) - out.Int(int(in.MaximumFGDistance)) - } - { - const prefix string = ",\"GoFor4AndShort\":" - out.RawString(prefix) - out.Int(int(in.GoFor4AndShort)) - } - { - const prefix string = ",\"GoFor4AndLong\":" - out.RawString(prefix) - out.Int(int(in.GoFor4AndLong)) - } - { - const prefix string = ",\"HasSchemePenalty\":" - out.RawString(prefix) - out.Bool(bool(in.HasSchemePenalty)) - } - { - const prefix string = ",\"OffenseSchemePenalty\":" - out.RawString(prefix) - out.Uint(uint(in.OffenseSchemePenalty)) - } - { - const prefix string = ",\"DefenseSchemePenalty\":" - out.RawString(prefix) - out.Uint(uint(in.DefenseSchemePenalty)) - } - { - const prefix string = ",\"DefaultOffense\":" - out.RawString(prefix) - out.Bool(bool(in.DefaultOffense)) - } - { - const prefix string = ",\"DefaultDefense\":" - out.RawString(prefix) - out.Bool(bool(in.DefaultDefense)) - } - { - const prefix string = ",\"PreviousWeekBye\":" - out.RawString(prefix) - out.Bool(bool(in.PreviousWeekBye)) - } - { - const prefix string = ",\"FocusPlays\":" - out.RawString(prefix) - out.String(string(in.FocusPlays)) - } - { - const prefix string = ",\"DoubleTeam\":" - out.RawString(prefix) - out.Int(int(in.DoubleTeam)) - } - { - const prefix string = ",\"DefFormation1\":" - out.RawString(prefix) - out.String(string(in.DefFormation1)) - } - { - const prefix string = ",\"DefFormation1RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation1RunToPass)) - } - { - const prefix string = ",\"DefFormation1BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation1BlitzWeight)) - } - { - const prefix string = ",\"DefFormation1BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation1BlitzAggression)) - } - { - const prefix string = ",\"DefFormation2\":" - out.RawString(prefix) - out.String(string(in.DefFormation2)) - } - { - const prefix string = ",\"DefFormation2RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation2RunToPass)) - } - { - const prefix string = ",\"DefFormation2BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation2BlitzWeight)) - } - { - const prefix string = ",\"DefFormation2BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation2BlitzAggression)) - } - { - const prefix string = ",\"DefFormation3\":" - out.RawString(prefix) - out.String(string(in.DefFormation3)) - } - { - const prefix string = ",\"DefFormation3RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation3RunToPass)) - } - { - const prefix string = ",\"DefFormation3BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation3BlitzWeight)) - } - { - const prefix string = ",\"DefFormation3BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation3BlitzAggression)) - } - { - const prefix string = ",\"DefFormation4\":" - out.RawString(prefix) - out.String(string(in.DefFormation4)) - } - { - const prefix string = ",\"DefFormation4RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation4RunToPass)) - } - { - const prefix string = ",\"DefFormation4BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation4BlitzWeight)) - } - { - const prefix string = ",\"DefFormation4BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation4BlitzAggression)) - } - { - const prefix string = ",\"DefFormation5\":" - out.RawString(prefix) - out.String(string(in.DefFormation5)) - } - { - const prefix string = ",\"DefFormation5RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation5RunToPass)) - } - { - const prefix string = ",\"DefFormation5BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation5BlitzWeight)) - } - { - const prefix string = ",\"DefFormation5BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation5BlitzAggression)) - } - { - const prefix string = ",\"OffFormation1Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation1Name)) - } - { - const prefix string = ",\"OffForm1Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm1Weight)) - } - { - const prefix string = ",\"OffForm1TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm1TraditionalRun)) - } - { - const prefix string = ",\"OffForm1OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm1OptionRun)) - } - { - const prefix string = ",\"OffForm1Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm1Pass)) - } - { - const prefix string = ",\"OffForm1RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm1RPO)) - } - { - const prefix string = ",\"OffFormation2Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation2Name)) - } - { - const prefix string = ",\"OffForm2Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm2Weight)) - } - { - const prefix string = ",\"OffForm2TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm2TraditionalRun)) - } - { - const prefix string = ",\"OffForm2OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm2OptionRun)) - } - { - const prefix string = ",\"OffForm2Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm2Pass)) - } - { - const prefix string = ",\"OffForm2RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm2RPO)) - } - { - const prefix string = ",\"OffFormation3Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation3Name)) - } - { - const prefix string = ",\"OffForm3Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm3Weight)) - } - { - const prefix string = ",\"OffForm3TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm3TraditionalRun)) - } - { - const prefix string = ",\"OffForm3OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm3OptionRun)) - } - { - const prefix string = ",\"OffForm3Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm3Pass)) - } - { - const prefix string = ",\"OffForm3RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm3RPO)) - } - { - const prefix string = ",\"OffFormation4Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation4Name)) - } - { - const prefix string = ",\"OffForm4Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm4Weight)) - } - { - const prefix string = ",\"OffForm4TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm4TraditionalRun)) - } - { - const prefix string = ",\"OffForm4OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm4OptionRun)) - } - { - const prefix string = ",\"OffForm4Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm4Pass)) - } - { - const prefix string = ",\"OffForm4RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm4RPO)) - } - { - const prefix string = ",\"OffFormation5Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation5Name)) - } - { - const prefix string = ",\"OffForm5Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm5Weight)) - } - { - const prefix string = ",\"OffForm5TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm5TraditionalRun)) - } - { - const prefix string = ",\"OffForm5OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm5OptionRun)) - } - { - const prefix string = ",\"OffForm5Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm5Pass)) - } - { - const prefix string = ",\"OffForm5RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm5RPO)) - } - { - const prefix string = ",\"RunnerDistributionQB\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionQB)) - } - { - const prefix string = ",\"RunnerDistributionRB1\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB1)) - } - { - const prefix string = ",\"RunnerDistributionRB2\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB2)) - } - { - const prefix string = ",\"RunnerDistributionRB3\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB3)) - } - { - const prefix string = ",\"RunnerDistributionFB1\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionFB1)) - } - { - const prefix string = ",\"RunnerDistributionFB2\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionFB2)) - } - { - const prefix string = ",\"RunnerDistributionWR\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionWR)) - } - { - const prefix string = ",\"RunnerDistributionWRPosition\":" - out.RawString(prefix) - out.String(string(in.RunnerDistributionWRPosition)) - } - { - const prefix string = ",\"RunnerDistributionWRID\":" - out.RawString(prefix) - out.Uint(uint(in.RunnerDistributionWRID)) - } - { - const prefix string = ",\"RunOutsideLeft\":" - out.RawString(prefix) - out.Int(int(in.RunOutsideLeft)) - } - { - const prefix string = ",\"RunOutsideRight\":" - out.RawString(prefix) - out.Int(int(in.RunOutsideRight)) - } - { - const prefix string = ",\"RunInsideLeft\":" - out.RawString(prefix) - out.Int(int(in.RunInsideLeft)) - } - { - const prefix string = ",\"RunInsideRight\":" - out.RawString(prefix) - out.Int(int(in.RunInsideRight)) - } - { - const prefix string = ",\"RunPowerLeft\":" - out.RawString(prefix) - out.Int(int(in.RunPowerLeft)) - } - { - const prefix string = ",\"RunPowerRight\":" - out.RawString(prefix) - out.Int(int(in.RunPowerRight)) - } - { - const prefix string = ",\"RunDrawLeft\":" - out.RawString(prefix) - out.Int(int(in.RunDrawLeft)) - } - { - const prefix string = ",\"RunDrawRight\":" - out.RawString(prefix) - out.Int(int(in.RunDrawRight)) - } - { - const prefix string = ",\"ReadOptionLeft\":" - out.RawString(prefix) - out.Int(int(in.ReadOptionLeft)) - } - { - const prefix string = ",\"ReadOptionRight\":" - out.RawString(prefix) - out.Int(int(in.ReadOptionRight)) - } - { - const prefix string = ",\"SpeedOptionLeft\":" - out.RawString(prefix) - out.Int(int(in.SpeedOptionLeft)) - } - { - const prefix string = ",\"SpeedOptionRight\":" - out.RawString(prefix) - out.Int(int(in.SpeedOptionRight)) - } - { - const prefix string = ",\"InvertedOptionLeft\":" - out.RawString(prefix) - out.Int(int(in.InvertedOptionLeft)) - } - { - const prefix string = ",\"InvertedOptionRight\":" - out.RawString(prefix) - out.Int(int(in.InvertedOptionRight)) - } - { - const prefix string = ",\"TripleOptionLeft\":" - out.RawString(prefix) - out.Int(int(in.TripleOptionLeft)) - } - { - const prefix string = ",\"TripleOptionRight\":" - out.RawString(prefix) - out.Int(int(in.TripleOptionRight)) - } - { - const prefix string = ",\"PassQuick\":" - out.RawString(prefix) - out.Int(int(in.PassQuick)) - } - { - const prefix string = ",\"PassShort\":" - out.RawString(prefix) - out.Int(int(in.PassShort)) - } - { - const prefix string = ",\"PassLong\":" - out.RawString(prefix) - out.Int(int(in.PassLong)) - } - { - const prefix string = ",\"PassDeep\":" - out.RawString(prefix) - out.Int(int(in.PassDeep)) - } - { - const prefix string = ",\"PassScreen\":" - out.RawString(prefix) - out.Int(int(in.PassScreen)) - } - { - const prefix string = ",\"PassPAShort\":" - out.RawString(prefix) - out.Int(int(in.PassPAShort)) - } - { - const prefix string = ",\"PassPAMedium\":" - out.RawString(prefix) - out.Int(int(in.PassPAMedium)) - } - { - const prefix string = ",\"PassPALong\":" - out.RawString(prefix) - out.Int(int(in.PassPALong)) - } - { - const prefix string = ",\"PassPADeep\":" - out.RawString(prefix) - out.Int(int(in.PassPADeep)) - } - { - const prefix string = ",\"LeftVsRight\":" - out.RawString(prefix) - out.Int(int(in.LeftVsRight)) - } - { - const prefix string = ",\"ChoiceOutside\":" - out.RawString(prefix) - out.Int(int(in.ChoiceOutside)) - } - { - const prefix string = ",\"ChoiceInside\":" - out.RawString(prefix) - out.Int(int(in.ChoiceInside)) - } - { - const prefix string = ",\"ChoicePower\":" - out.RawString(prefix) - out.Int(int(in.ChoicePower)) - } - { - const prefix string = ",\"PeekOutside\":" - out.RawString(prefix) - out.Int(int(in.PeekOutside)) - } - { - const prefix string = ",\"PeekInside\":" - out.RawString(prefix) - out.Int(int(in.PeekInside)) - } - { - const prefix string = ",\"PeekPower\":" - out.RawString(prefix) - out.Int(int(in.PeekPower)) - } - { - const prefix string = ",\"TargetingWR1\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR1)) - } - { - const prefix string = ",\"TargetDepthWR1\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR1)) - } - { - const prefix string = ",\"TargetingWR2\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR2)) - } - { - const prefix string = ",\"TargetDepthWR2\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR2)) - } - { - const prefix string = ",\"TargetingWR3\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR3)) - } - { - const prefix string = ",\"TargetDepthWR3\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR3)) - } - { - const prefix string = ",\"TargetingWR4\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR4)) - } - { - const prefix string = ",\"TargetDepthWR4\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR4)) - } - { - const prefix string = ",\"TargetingWR5\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR5)) - } - { - const prefix string = ",\"TargetDepthWR5\":" - out.RawString(prefix) - out.String(string(in.TargetDepthWR5)) - } - { - const prefix string = ",\"TargetingTE1\":" - out.RawString(prefix) - out.Int(int(in.TargetingTE1)) - } - { - const prefix string = ",\"TargetDepthTE1\":" - out.RawString(prefix) - out.String(string(in.TargetDepthTE1)) - } - { - const prefix string = ",\"TargetingTE2\":" - out.RawString(prefix) - out.Int(int(in.TargetingTE2)) - } - { - const prefix string = ",\"TargetDepthTE2\":" - out.RawString(prefix) - out.String(string(in.TargetDepthTE2)) - } - { - const prefix string = ",\"TargetingTE3\":" - out.RawString(prefix) - out.Int(int(in.TargetingTE3)) - } - { - const prefix string = ",\"TargetDepthTE3\":" - out.RawString(prefix) - out.String(string(in.TargetDepthTE3)) - } - { - const prefix string = ",\"TargetingRB1\":" - out.RawString(prefix) - out.Int(int(in.TargetingRB1)) - } - { - const prefix string = ",\"TargetDepthRB1\":" - out.RawString(prefix) - out.String(string(in.TargetDepthRB1)) - } - { - const prefix string = ",\"TargetingRB2\":" - out.RawString(prefix) - out.Int(int(in.TargetingRB2)) - } - { - const prefix string = ",\"TargetDepthRB2\":" - out.RawString(prefix) - out.String(string(in.TargetDepthRB2)) - } - { - const prefix string = ",\"TargetingFB1\":" - out.RawString(prefix) - out.Int(int(in.TargetingFB1)) - } - { - const prefix string = ",\"TargetDepthFB1\":" - out.RawString(prefix) - out.String(string(in.TargetDepthFB1)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in *jlexer.Lexer, out *structs.Notification) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = uint(in.Uint()) - case "League": - out.League = string(in.String()) - case "NotificationType": - out.NotificationType = string(in.String()) - case "Message": - out.Message = string(in.String()) - case "Subject": - out.Subject = string(in.String()) - case "IsRead": - out.IsRead = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.DeletedAt).UnmarshalJSON(data)) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out *jwriter.Writer, in structs.Notification) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"League\":" - out.RawString(prefix) - out.String(string(in.League)) - } - { - const prefix string = ",\"NotificationType\":" - out.RawString(prefix) - out.String(string(in.NotificationType)) - } - { - const prefix string = ",\"Message\":" - out.RawString(prefix) - out.String(string(in.Message)) - } - { - const prefix string = ",\"Subject\":" - out.RawString(prefix) - out.String(string(in.Subject)) - } - { - const prefix string = ",\"IsRead\":" - out.RawString(prefix) - out.Bool(bool(in.IsRead)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - out.Raw((in.DeletedAt).MarshalJSON()) - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in *jlexer.Lexer, out *structs.HistoricCollegePlayer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "TeamID": - out.TeamID = int(in.Int()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "HighSchool": - out.HighSchool = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "Year": - out.Year = int(in.Int()) - case "IsRedshirt": - out.IsRedshirt = bool(in.Bool()) - case "IsRedshirting": - out.IsRedshirting = bool(in.Bool()) - case "HasGraduated": - out.HasGraduated = bool(in.Bool()) - case "TransferStatus": - out.TransferStatus = int(in.Int()) - case "TransferLikeliness": - out.TransferLikeliness = string(in.String()) - case "Stats": - if in.IsNull() { - in.Skip() - out.Stats = nil - } else { - in.Delim('[') - if out.Stats == nil { - if !in.IsDelim(']') { - out.Stats = make([]structs.CollegePlayerStats, 0, 0) - } else { - out.Stats = []structs.CollegePlayerStats{} - } - } else { - out.Stats = (out.Stats)[:0] - } - for !in.IsDelim(']') { - var v190 structs.CollegePlayerStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in, &v190) - out.Stats = append(out.Stats, v190) - in.WantComma() - } - in.Delim(']') - } - case "SeasonStats": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in, &out.SeasonStats) - case "HasProgressed": - out.HasProgressed = bool(in.Bool()) - case "WillDeclare": - out.WillDeclare = bool(in.Bool()) - case "LegacyID": - out.LegacyID = uint(in.Uint()) - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "Position": - out.Position = string(in.String()) - case "Archetype": - out.Archetype = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "Height": - out.Height = int(in.Int()) - case "Weight": - out.Weight = int(in.Int()) - case "Age": - out.Age = int(in.Int()) - case "Stars": - out.Stars = int(in.Int()) - case "Overall": - out.Overall = int(in.Int()) - case "Stamina": - out.Stamina = int(in.Int()) - case "Injury": - out.Injury = int(in.Int()) - case "FootballIQ": - out.FootballIQ = int(in.Int()) - case "Speed": - out.Speed = int(in.Int()) - case "Carrying": - out.Carrying = int(in.Int()) - case "Agility": - out.Agility = int(in.Int()) - case "Catching": - out.Catching = int(in.Int()) - case "RouteRunning": - out.RouteRunning = int(in.Int()) - case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) - case "ManCoverage": - out.ManCoverage = int(in.Int()) - case "Strength": - out.Strength = int(in.Int()) - case "Tackle": - out.Tackle = int(in.Int()) - case "PassBlock": - out.PassBlock = int(in.Int()) - case "RunBlock": - out.RunBlock = int(in.Int()) - case "PassRush": - out.PassRush = int(in.Int()) - case "RunDefense": - out.RunDefense = int(in.Int()) - case "ThrowPower": - out.ThrowPower = int(in.Int()) - case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) - case "KickAccuracy": - out.KickAccuracy = int(in.Int()) - case "KickPower": - out.KickPower = int(in.Int()) - case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) - case "PuntPower": - out.PuntPower = int(in.Int()) - case "Progression": - out.Progression = int(in.Int()) - case "Discipline": - out.Discipline = int(in.Int()) - case "PotentialGrade": - out.PotentialGrade = string(in.String()) - case "FreeAgency": - out.FreeAgency = string(in.String()) - case "Personality": - out.Personality = string(in.String()) - case "RecruitingBias": - out.RecruitingBias = string(in.String()) - case "WorkEthic": - out.WorkEthic = string(in.String()) - case "AcademicBias": - out.AcademicBias = string(in.String()) - case "IsInjured": - out.IsInjured = bool(in.Bool()) - case "InjuryName": - out.InjuryName = string(in.String()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryReserve": - out.InjuryReserve = bool(in.Bool()) - case "PrimeAge": - out.PrimeAge = uint(in.Uint()) - case "Clutch": - out.Clutch = int(in.Int()) - case "Shotgun": - out.Shotgun = int(in.Int()) - case "PositionTwo": - out.PositionTwo = string(in.String()) - case "ArchetypeTwo": - out.ArchetypeTwo = string(in.String()) - case "RelativeID": - out.RelativeID = uint(in.Uint()) - case "RelativeType": - out.RelativeType = uint(in.Uint()) - case "Notes": - out.Notes = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out *jwriter.Writer, in structs.HistoricCollegePlayer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"HighSchool\":" - out.RawString(prefix) - out.String(string(in.HighSchool)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Int(int(in.Year)) - } - { - const prefix string = ",\"IsRedshirt\":" - out.RawString(prefix) - out.Bool(bool(in.IsRedshirt)) - } - { - const prefix string = ",\"IsRedshirting\":" - out.RawString(prefix) - out.Bool(bool(in.IsRedshirting)) - } - { - const prefix string = ",\"HasGraduated\":" - out.RawString(prefix) - out.Bool(bool(in.HasGraduated)) - } - { - const prefix string = ",\"TransferStatus\":" - out.RawString(prefix) - out.Int(int(in.TransferStatus)) - } - { - const prefix string = ",\"TransferLikeliness\":" - out.RawString(prefix) - out.String(string(in.TransferLikeliness)) - } - { - const prefix string = ",\"Stats\":" - out.RawString(prefix) - if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v191, v192 := range in.Stats { - if v191 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out, v192) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"SeasonStats\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out, in.SeasonStats) - } - { - const prefix string = ",\"HasProgressed\":" - out.RawString(prefix) - out.Bool(bool(in.HasProgressed)) - } - { - const prefix string = ",\"WillDeclare\":" - out.RawString(prefix) - out.Bool(bool(in.WillDeclare)) - } - { - const prefix string = ",\"LegacyID\":" - out.RawString(prefix) - out.Uint(uint(in.LegacyID)) - } - { - const prefix string = ",\"FirstName\":" - out.RawString(prefix) - out.String(string(in.FirstName)) - } - { - const prefix string = ",\"LastName\":" - out.RawString(prefix) - out.String(string(in.LastName)) - } - { - const prefix string = ",\"Position\":" - out.RawString(prefix) - out.String(string(in.Position)) - } - { - const prefix string = ",\"Archetype\":" - out.RawString(prefix) - out.String(string(in.Archetype)) - } - { - const prefix string = ",\"PreviousTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) - } - { - const prefix string = ",\"PreviousTeam\":" - out.RawString(prefix) - out.String(string(in.PreviousTeam)) - } - { - const prefix string = ",\"Height\":" - out.RawString(prefix) - out.Int(int(in.Height)) - } - { - const prefix string = ",\"Weight\":" - out.RawString(prefix) - out.Int(int(in.Weight)) - } - { - const prefix string = ",\"Age\":" - out.RawString(prefix) - out.Int(int(in.Age)) - } - { - const prefix string = ",\"Stars\":" - out.RawString(prefix) - out.Int(int(in.Stars)) - } - { - const prefix string = ",\"Overall\":" - out.RawString(prefix) - out.Int(int(in.Overall)) - } - { - const prefix string = ",\"Stamina\":" - out.RawString(prefix) - out.Int(int(in.Stamina)) - } - { - const prefix string = ",\"Injury\":" - out.RawString(prefix) - out.Int(int(in.Injury)) - } - { - const prefix string = ",\"FootballIQ\":" - out.RawString(prefix) - out.Int(int(in.FootballIQ)) - } - { - const prefix string = ",\"Speed\":" - out.RawString(prefix) - out.Int(int(in.Speed)) - } - { - const prefix string = ",\"Carrying\":" - out.RawString(prefix) - out.Int(int(in.Carrying)) - } - { - const prefix string = ",\"Agility\":" - out.RawString(prefix) - out.Int(int(in.Agility)) - } - { - const prefix string = ",\"Catching\":" - out.RawString(prefix) - out.Int(int(in.Catching)) - } - { - const prefix string = ",\"RouteRunning\":" - out.RawString(prefix) - out.Int(int(in.RouteRunning)) - } - { - const prefix string = ",\"ZoneCoverage\":" - out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) - } - { - const prefix string = ",\"ManCoverage\":" - out.RawString(prefix) - out.Int(int(in.ManCoverage)) - } - { - const prefix string = ",\"Strength\":" - out.RawString(prefix) - out.Int(int(in.Strength)) - } - { - const prefix string = ",\"Tackle\":" - out.RawString(prefix) - out.Int(int(in.Tackle)) - } - { - const prefix string = ",\"PassBlock\":" - out.RawString(prefix) - out.Int(int(in.PassBlock)) - } - { - const prefix string = ",\"RunBlock\":" - out.RawString(prefix) - out.Int(int(in.RunBlock)) - } - { - const prefix string = ",\"PassRush\":" - out.RawString(prefix) - out.Int(int(in.PassRush)) - } - { - const prefix string = ",\"RunDefense\":" - out.RawString(prefix) - out.Int(int(in.RunDefense)) - } - { - const prefix string = ",\"ThrowPower\":" - out.RawString(prefix) - out.Int(int(in.ThrowPower)) - } - { - const prefix string = ",\"ThrowAccuracy\":" - out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) - } - { - const prefix string = ",\"KickAccuracy\":" - out.RawString(prefix) - out.Int(int(in.KickAccuracy)) - } - { - const prefix string = ",\"KickPower\":" - out.RawString(prefix) - out.Int(int(in.KickPower)) - } - { - const prefix string = ",\"PuntAccuracy\":" - out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) - } - { - const prefix string = ",\"PuntPower\":" - out.RawString(prefix) - out.Int(int(in.PuntPower)) - } - { - const prefix string = ",\"Progression\":" - out.RawString(prefix) - out.Int(int(in.Progression)) - } - { - const prefix string = ",\"Discipline\":" - out.RawString(prefix) - out.Int(int(in.Discipline)) - } - { - const prefix string = ",\"PotentialGrade\":" - out.RawString(prefix) - out.String(string(in.PotentialGrade)) - } - { - const prefix string = ",\"FreeAgency\":" - out.RawString(prefix) - out.String(string(in.FreeAgency)) - } - { - const prefix string = ",\"Personality\":" - out.RawString(prefix) - out.String(string(in.Personality)) - } - { - const prefix string = ",\"RecruitingBias\":" - out.RawString(prefix) - out.String(string(in.RecruitingBias)) - } - { - const prefix string = ",\"WorkEthic\":" - out.RawString(prefix) - out.String(string(in.WorkEthic)) - } - { - const prefix string = ",\"AcademicBias\":" - out.RawString(prefix) - out.String(string(in.AcademicBias)) - } - { - const prefix string = ",\"IsInjured\":" - out.RawString(prefix) - out.Bool(bool(in.IsInjured)) - } - { - const prefix string = ",\"InjuryName\":" - out.RawString(prefix) - out.String(string(in.InjuryName)) - } - { - const prefix string = ",\"InjuryType\":" - out.RawString(prefix) - out.String(string(in.InjuryType)) - } - { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) - } - { - const prefix string = ",\"InjuryReserve\":" - out.RawString(prefix) - out.Bool(bool(in.InjuryReserve)) - } - { - const prefix string = ",\"PrimeAge\":" - out.RawString(prefix) - out.Uint(uint(in.PrimeAge)) - } - { - const prefix string = ",\"Clutch\":" - out.RawString(prefix) - out.Int(int(in.Clutch)) - } - { - const prefix string = ",\"Shotgun\":" - out.RawString(prefix) - out.Int(int(in.Shotgun)) - } - { - const prefix string = ",\"PositionTwo\":" - out.RawString(prefix) - out.String(string(in.PositionTwo)) - } - { - const prefix string = ",\"ArchetypeTwo\":" - out.RawString(prefix) - out.String(string(in.ArchetypeTwo)) - } - { - const prefix string = ",\"RelativeID\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeID)) - } - { - const prefix string = ",\"RelativeType\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeType)) - } - { - const prefix string = ",\"Notes\":" - out.RawString(prefix) - out.String(string(in.Notes)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in *jlexer.Lexer, out *structs.CollegeTeam) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "ConferenceID": - out.ConferenceID = int(in.Int()) - case "Conference": - out.Conference = string(in.String()) - case "DivisionID": - out.DivisionID = int(in.Int()) - case "Division": - out.Division = string(in.String()) - case "ProgramPrestige": - out.ProgramPrestige = int(in.Int()) - case "AcademicPrestige": - out.AcademicPrestige = int(in.Int()) - case "Facilities": - out.Facilities = int(in.Int()) - case "IsFBS": - out.IsFBS = bool(in.Bool()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "PlayersProgressed": - out.PlayersProgressed = bool(in.Bool()) - case "RecruitsAdded": - out.RecruitsAdded = bool(in.Bool()) - case "CollegeCoach": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &out.CollegeCoach) - case "RecruitingProfile": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, &out.RecruitingProfile) - case "TeamStats": - if in.IsNull() { - in.Skip() - out.TeamStats = nil - } else { - in.Delim('[') - if out.TeamStats == nil { - if !in.IsDelim(']') { - out.TeamStats = make([]structs.CollegeTeamStats, 0, 0) - } else { - out.TeamStats = []structs.CollegeTeamStats{} - } - } else { - out.TeamStats = (out.TeamStats)[:0] - } - for !in.IsDelim(']') { - var v193 structs.CollegeTeamStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v193) - out.TeamStats = append(out.TeamStats, v193) - in.WantComma() - } - in.Delim(']') - } - case "TeamSeasonStats": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &out.TeamSeasonStats) - case "TeamRecord": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in, &out.TeamRecord) - case "TeamGameplan": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in, &out.TeamGameplan) - case "TeamDepthChart": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in, &out.TeamDepthChart) - case "TeamStandings": - if in.IsNull() { - in.Skip() - out.TeamStandings = nil - } else { - in.Delim('[') - if out.TeamStandings == nil { - if !in.IsDelim(']') { - out.TeamStandings = make([]structs.CollegeStandings, 0, 0) - } else { - out.TeamStandings = []structs.CollegeStandings{} - } - } else { - out.TeamStandings = (out.TeamStandings)[:0] - } - for !in.IsDelim(']') { - var v194 structs.CollegeStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v194) - out.TeamStandings = append(out.TeamStandings, v194) - in.WantComma() - } - in.Delim(']') - } - case "TeamName": - out.TeamName = string(in.String()) - case "Mascot": - out.Mascot = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "Coach": - out.Coach = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "Country": - out.Country = string(in.String()) - case "StadiumID": - out.StadiumID = uint(in.Uint()) - case "Stadium": - out.Stadium = string(in.String()) - case "StadiumCapacity": - out.StadiumCapacity = int(in.Int()) - case "RecordAttendance": - out.RecordAttendance = int(in.Int()) - case "Enrollment": - out.Enrollment = int(in.Int()) - case "FirstPlayed": - out.FirstPlayed = int(in.Int()) - case "ColorOne": - out.ColorOne = string(in.String()) - case "ColorTwo": - out.ColorTwo = string(in.String()) - case "ColorThree": - out.ColorThree = string(in.String()) - case "DiscordID": - out.DiscordID = string(in.String()) - case "OverallGrade": - out.OverallGrade = string(in.String()) - case "OffenseGrade": - out.OffenseGrade = string(in.String()) - case "DefenseGrade": - out.DefenseGrade = string(in.String()) - case "SpecialTeamsGrade": - out.SpecialTeamsGrade = string(in.String()) - case "PenaltyMarks": - out.PenaltyMarks = uint8(in.Uint8()) - case "JerseyType": - out.JerseyType = uint8(in.Uint8()) - case "LastLogin": - if data := in.Raw(); in.Ok() { - in.AddError((out.LastLogin).UnmarshalJSON(data)) - } - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out *jwriter.Writer, in structs.CollegeTeam) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"ConferenceID\":" - out.RawString(prefix[1:]) - out.Int(int(in.ConferenceID)) - } - { - const prefix string = ",\"Conference\":" - out.RawString(prefix) - out.String(string(in.Conference)) - } - { - const prefix string = ",\"DivisionID\":" - out.RawString(prefix) - out.Int(int(in.DivisionID)) - } - { - const prefix string = ",\"Division\":" - out.RawString(prefix) - out.String(string(in.Division)) - } - { - const prefix string = ",\"ProgramPrestige\":" - out.RawString(prefix) - out.Int(int(in.ProgramPrestige)) - } - { - const prefix string = ",\"AcademicPrestige\":" - out.RawString(prefix) - out.Int(int(in.AcademicPrestige)) - } - { - const prefix string = ",\"Facilities\":" - out.RawString(prefix) - out.Int(int(in.Facilities)) - } - { - const prefix string = ",\"IsFBS\":" - out.RawString(prefix) - out.Bool(bool(in.IsFBS)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - { - const prefix string = ",\"PlayersProgressed\":" - out.RawString(prefix) - out.Bool(bool(in.PlayersProgressed)) - } - { - const prefix string = ",\"RecruitsAdded\":" - out.RawString(prefix) - out.Bool(bool(in.RecruitsAdded)) - } - { - const prefix string = ",\"CollegeCoach\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, in.CollegeCoach) - } - { - const prefix string = ",\"RecruitingProfile\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, in.RecruitingProfile) - } - { - const prefix string = ",\"TeamStats\":" - out.RawString(prefix) - if in.TeamStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v195, v196 := range in.TeamStats { - if v195 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v196) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TeamSeasonStats\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, in.TeamSeasonStats) - } - { - const prefix string = ",\"TeamRecord\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out, in.TeamRecord) - } - { - const prefix string = ",\"TeamGameplan\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out, in.TeamGameplan) - } - { - const prefix string = ",\"TeamDepthChart\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out, in.TeamDepthChart) - } - { - const prefix string = ",\"TeamStandings\":" - out.RawString(prefix) - if in.TeamStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v197, v198 := range in.TeamStandings { - if v197 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v198) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"TeamName\":" - out.RawString(prefix) - out.String(string(in.TeamName)) - } - { - const prefix string = ",\"Mascot\":" - out.RawString(prefix) - out.String(string(in.Mascot)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"Coach\":" - out.RawString(prefix) - out.String(string(in.Coach)) - } - { - const prefix string = ",\"City\":" - out.RawString(prefix) - out.String(string(in.City)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"Country\":" - out.RawString(prefix) - out.String(string(in.Country)) - } - { - const prefix string = ",\"StadiumID\":" - out.RawString(prefix) - out.Uint(uint(in.StadiumID)) - } - { - const prefix string = ",\"Stadium\":" - out.RawString(prefix) - out.String(string(in.Stadium)) - } - { - const prefix string = ",\"StadiumCapacity\":" - out.RawString(prefix) - out.Int(int(in.StadiumCapacity)) - } - { - const prefix string = ",\"RecordAttendance\":" - out.RawString(prefix) - out.Int(int(in.RecordAttendance)) - } - { - const prefix string = ",\"Enrollment\":" - out.RawString(prefix) - out.Int(int(in.Enrollment)) - } - { - const prefix string = ",\"FirstPlayed\":" - out.RawString(prefix) - out.Int(int(in.FirstPlayed)) - } - { - const prefix string = ",\"ColorOne\":" - out.RawString(prefix) - out.String(string(in.ColorOne)) - } - { - const prefix string = ",\"ColorTwo\":" - out.RawString(prefix) - out.String(string(in.ColorTwo)) - } - { - const prefix string = ",\"ColorThree\":" - out.RawString(prefix) - out.String(string(in.ColorThree)) - } - { - const prefix string = ",\"DiscordID\":" - out.RawString(prefix) - out.String(string(in.DiscordID)) - } - { - const prefix string = ",\"OverallGrade\":" - out.RawString(prefix) - out.String(string(in.OverallGrade)) - } - { - const prefix string = ",\"OffenseGrade\":" - out.RawString(prefix) - out.String(string(in.OffenseGrade)) - } - { - const prefix string = ",\"DefenseGrade\":" - out.RawString(prefix) - out.String(string(in.DefenseGrade)) - } - { - const prefix string = ",\"SpecialTeamsGrade\":" - out.RawString(prefix) - out.String(string(in.SpecialTeamsGrade)) - } - { - const prefix string = ",\"PenaltyMarks\":" - out.RawString(prefix) - out.Uint8(uint8(in.PenaltyMarks)) - } - { - const prefix string = ",\"JerseyType\":" - out.RawString(prefix) - out.Uint8(uint8(in.JerseyType)) - } - { - const prefix string = ",\"LastLogin\":" - out.RawString(prefix) - out.Raw((in.LastLogin).MarshalJSON()) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in *jlexer.Lexer, out *structs.CollegeTeamRecords) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = int(in.Int()) - case "PassingTDCareerHolderID": - out.PassingTDCareerHolderID = int(in.Int()) - case "PassingTDCareerHolder": - out.PassingTDCareerHolder = string(in.String()) - case "PassingTDCareerRecord": - out.PassingTDCareerRecord = int(in.Int()) - case "PassingTDGameHolderID": - out.PassingTDGameHolderID = int(in.Int()) - case "PassingTDGameHolder": - out.PassingTDGameHolder = string(in.String()) - case "PassingTDGameRecord": - out.PassingTDGameRecord = int(in.Int()) - case "PassingTDSeasonHolderID": - out.PassingTDSeasonHolderID = int(in.Int()) - case "PassingTDSeasonHolder": - out.PassingTDSeasonHolder = string(in.String()) - case "PassingTDSeasonRecord": - out.PassingTDSeasonRecord = int(in.Int()) - case "PassingYardsCareerHolderID": - out.PassingYardsCareerHolderID = int(in.Int()) - case "PassingYardsCareerHolder": - out.PassingYardsCareerHolder = string(in.String()) - case "PassingYardsCareerRecord": - out.PassingYardsCareerRecord = int(in.Int()) - case "PassingYardsGameHolderID": - out.PassingYardsGameHolderID = int(in.Int()) - case "PassingYardsGameHolder": - out.PassingYardsGameHolder = string(in.String()) - case "PassingYardsGameRecord": - out.PassingYardsGameRecord = int(in.Int()) - case "PassingYardsSeasonHolderID": - out.PassingYardsSeasonHolderID = int(in.Int()) - case "PassingYardsSeasonHolder": - out.PassingYardsSeasonHolder = string(in.String()) - case "PassingYardsSeasonRecord": - out.PassingYardsSeasonRecord = int(in.Int()) - case "RushingTDCareerHolderID": - out.RushingTDCareerHolderID = int(in.Int()) - case "RushingTDCareerHolder": - out.RushingTDCareerHolder = string(in.String()) - case "RushingTDCareerRecord": - out.RushingTDCareerRecord = int(in.Int()) - case "RushingTDGameHolderID": - out.RushingTDGameHolderID = int(in.Int()) - case "RushingTDGameHolder": - out.RushingTDGameHolder = string(in.String()) - case "RushingTDGameRecord": - out.RushingTDGameRecord = int(in.Int()) - case "RushingTDSeasonHolderID": - out.RushingTDSeasonHolderID = int(in.Int()) - case "RushingTDSeasonHolder": - out.RushingTDSeasonHolder = string(in.String()) - case "RushingTDSeasonRecord": - out.RushingTDSeasonRecord = int(in.Int()) - case "RushingYardsCareerHolderID": - out.RushingYardsCareerHolderID = int(in.Int()) - case "RushingYardsCareerHolder": - out.RushingYardsCareerHolder = string(in.String()) - case "RushingYardsCareerRecord": - out.RushingYardsCareerRecord = int(in.Int()) - case "RushingYardsGameHolderID": - out.RushingYardsGameHolderID = int(in.Int()) - case "RushingYardsGameHolder": - out.RushingYardsGameHolder = string(in.String()) - case "RushingYardsGameRecord": - out.RushingYardsGameRecord = int(in.Int()) - case "RushingYardsSeasonHolderID": - out.RushingYardsSeasonHolderID = int(in.Int()) - case "RushingYardsSeasonHolder": - out.RushingYardsSeasonHolder = string(in.String()) - case "RushingYardsSeasonRecord": - out.RushingYardsSeasonRecord = int(in.Int()) - case "ReceivingTDCareerHolderID": - out.ReceivingTDCareerHolderID = int(in.Int()) - case "ReceivingTDCareerHolder": - out.ReceivingTDCareerHolder = string(in.String()) - case "ReceivingTDCareerRecord": - out.ReceivingTDCareerRecord = int(in.Int()) - case "ReceivingTDGameHolderID": - out.ReceivingTDGameHolderID = int(in.Int()) - case "ReceivingTDGameHolder": - out.ReceivingTDGameHolder = string(in.String()) - case "ReceivingTDGameRecord": - out.ReceivingTDGameRecord = int(in.Int()) - case "ReceivingTDSeasonHolderID": - out.ReceivingTDSeasonHolderID = int(in.Int()) - case "ReceivingTDSeasonHolder": - out.ReceivingTDSeasonHolder = string(in.String()) - case "ReceivingTDSeasonRecord": - out.ReceivingTDSeasonRecord = int(in.Int()) - case "ReceivingYardsCareerHolderID": - out.ReceivingYardsCareerHolderID = int(in.Int()) - case "ReceivingYardsCareerHolder": - out.ReceivingYardsCareerHolder = string(in.String()) - case "ReceivingYardsCareerRecord": - out.ReceivingYardsCareerRecord = int(in.Int()) - case "ReceivingYardsGameHolderID": - out.ReceivingYardsGameHolderID = int(in.Int()) - case "ReceivingYardsGameHolder": - out.ReceivingYardsGameHolder = string(in.String()) - case "ReceivingYardsGameRecord": - out.ReceivingYardsGameRecord = int(in.Int()) - case "ReceivingYardsSeasonHolderID": - out.ReceivingYardsSeasonHolderID = int(in.Int()) - case "ReceivingYardsSeasonHolder": - out.ReceivingYardsSeasonHolder = string(in.String()) - case "ReceivingYardsSeasonRecord": - out.ReceivingYardsSeasonRecord = int(in.Int()) - case "ReceptionsCareerHolderID": - out.ReceptionsCareerHolderID = int(in.Int()) - case "ReceptionsCareerHolder": - out.ReceptionsCareerHolder = string(in.String()) - case "ReceptionsCareerRecord": - out.ReceptionsCareerRecord = int(in.Int()) - case "ReceptionsGameHolderID": - out.ReceptionsGameHolderID = int(in.Int()) - case "ReceptionsGameHolder": - out.ReceptionsGameHolder = string(in.String()) - case "ReceptionsGameRecord": - out.ReceptionsGameRecord = int(in.Int()) - case "ReceptionsSeasonHolderID": - out.ReceptionsSeasonHolderID = int(in.Int()) - case "ReceptionsSeasonHolder": - out.ReceptionsSeasonHolder = string(in.String()) - case "ReceptionsSeasonRecord": - out.ReceptionsSeasonRecord = int(in.Int()) - case "InterceptionsCareerHolderID": - out.InterceptionsCareerHolderID = int(in.Int()) - case "InterceptionsCareerHolder": - out.InterceptionsCareerHolder = string(in.String()) - case "InterceptionsCareerRecord": - out.InterceptionsCareerRecord = int(in.Int()) - case "InterceptionsGameHolderID": - out.InterceptionsGameHolderID = int(in.Int()) - case "InterceptionsGameHolder": - out.InterceptionsGameHolder = string(in.String()) - case "InterceptionsGameRecord": - out.InterceptionsGameRecord = int(in.Int()) - case "InterceptionsSeasonHolderID": - out.InterceptionsSeasonHolderID = int(in.Int()) - case "InterceptionsSeasonHolder": - out.InterceptionsSeasonHolder = string(in.String()) - case "InterceptionsSeasonRecord": - out.InterceptionsSeasonRecord = int(in.Int()) - case "SacksCareerHolderID": - out.SacksCareerHolderID = int(in.Int()) - case "SacksCareerHolder": - out.SacksCareerHolder = string(in.String()) - case "SacksCareerRecord": - out.SacksCareerRecord = int(in.Int()) - case "SacksGameHolderID": - out.SacksGameHolderID = int(in.Int()) - case "SacksGameHolder": - out.SacksGameHolder = string(in.String()) - case "SacksGameRecord": - out.SacksGameRecord = int(in.Int()) - case "SacksSeasonHolderID": - out.SacksSeasonHolderID = int(in.Int()) - case "SacksSeasonHolder": - out.SacksSeasonHolder = string(in.String()) - case "SacksSeasonRecord": - out.SacksSeasonRecord = int(in.Int()) - case "TacklesCareerHolderID": - out.TacklesCareerHolderID = int(in.Int()) - case "TacklesCareerHolder": - out.TacklesCareerHolder = string(in.String()) - case "TacklesCareerRecord": - out.TacklesCareerRecord = int(in.Int()) - case "TacklesGameHolderID": - out.TacklesGameHolderID = int(in.Int()) - case "TacklesGameHolder": - out.TacklesGameHolder = string(in.String()) - case "TacklesGameRecord": - out.TacklesGameRecord = int(in.Int()) - case "TacklesSeasonHolderID": - out.TacklesSeasonHolderID = int(in.Int()) - case "TacklesSeasonHolder": - out.TacklesSeasonHolder = string(in.String()) - case "TacklesSeasonRecord": - out.TacklesSeasonRecord = int(in.Int()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out *jwriter.Writer, in structs.CollegeTeamRecords) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"PassingTDCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.PassingTDCareerHolderID)) - } - { - const prefix string = ",\"PassingTDCareerHolder\":" - out.RawString(prefix) - out.String(string(in.PassingTDCareerHolder)) - } - { - const prefix string = ",\"PassingTDCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.PassingTDCareerRecord)) - } - { - const prefix string = ",\"PassingTDGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.PassingTDGameHolderID)) - } - { - const prefix string = ",\"PassingTDGameHolder\":" - out.RawString(prefix) - out.String(string(in.PassingTDGameHolder)) - } - { - const prefix string = ",\"PassingTDGameRecord\":" - out.RawString(prefix) - out.Int(int(in.PassingTDGameRecord)) - } - { - const prefix string = ",\"PassingTDSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.PassingTDSeasonHolderID)) - } - { - const prefix string = ",\"PassingTDSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.PassingTDSeasonHolder)) - } - { - const prefix string = ",\"PassingTDSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.PassingTDSeasonRecord)) - } - { - const prefix string = ",\"PassingYardsCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsCareerHolderID)) - } - { - const prefix string = ",\"PassingYardsCareerHolder\":" - out.RawString(prefix) - out.String(string(in.PassingYardsCareerHolder)) - } - { - const prefix string = ",\"PassingYardsCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsCareerRecord)) - } - { - const prefix string = ",\"PassingYardsGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsGameHolderID)) - } - { - const prefix string = ",\"PassingYardsGameHolder\":" - out.RawString(prefix) - out.String(string(in.PassingYardsGameHolder)) - } - { - const prefix string = ",\"PassingYardsGameRecord\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsGameRecord)) - } - { - const prefix string = ",\"PassingYardsSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsSeasonHolderID)) - } - { - const prefix string = ",\"PassingYardsSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.PassingYardsSeasonHolder)) - } - { - const prefix string = ",\"PassingYardsSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsSeasonRecord)) - } - { - const prefix string = ",\"RushingTDCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.RushingTDCareerHolderID)) - } - { - const prefix string = ",\"RushingTDCareerHolder\":" - out.RawString(prefix) - out.String(string(in.RushingTDCareerHolder)) - } - { - const prefix string = ",\"RushingTDCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.RushingTDCareerRecord)) - } - { - const prefix string = ",\"RushingTDGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.RushingTDGameHolderID)) - } - { - const prefix string = ",\"RushingTDGameHolder\":" - out.RawString(prefix) - out.String(string(in.RushingTDGameHolder)) - } - { - const prefix string = ",\"RushingTDGameRecord\":" - out.RawString(prefix) - out.Int(int(in.RushingTDGameRecord)) - } - { - const prefix string = ",\"RushingTDSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.RushingTDSeasonHolderID)) - } - { - const prefix string = ",\"RushingTDSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.RushingTDSeasonHolder)) - } - { - const prefix string = ",\"RushingTDSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.RushingTDSeasonRecord)) - } - { - const prefix string = ",\"RushingYardsCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsCareerHolderID)) - } - { - const prefix string = ",\"RushingYardsCareerHolder\":" - out.RawString(prefix) - out.String(string(in.RushingYardsCareerHolder)) - } - { - const prefix string = ",\"RushingYardsCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsCareerRecord)) - } - { - const prefix string = ",\"RushingYardsGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsGameHolderID)) - } - { - const prefix string = ",\"RushingYardsGameHolder\":" - out.RawString(prefix) - out.String(string(in.RushingYardsGameHolder)) - } - { - const prefix string = ",\"RushingYardsGameRecord\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsGameRecord)) - } - { - const prefix string = ",\"RushingYardsSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsSeasonHolderID)) - } - { - const prefix string = ",\"RushingYardsSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.RushingYardsSeasonHolder)) - } - { - const prefix string = ",\"RushingYardsSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsSeasonRecord)) - } - { - const prefix string = ",\"ReceivingTDCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDCareerHolderID)) - } - { - const prefix string = ",\"ReceivingTDCareerHolder\":" - out.RawString(prefix) - out.String(string(in.ReceivingTDCareerHolder)) - } - { - const prefix string = ",\"ReceivingTDCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDCareerRecord)) - } - { - const prefix string = ",\"ReceivingTDGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDGameHolderID)) - } - { - const prefix string = ",\"ReceivingTDGameHolder\":" - out.RawString(prefix) - out.String(string(in.ReceivingTDGameHolder)) - } - { - const prefix string = ",\"ReceivingTDGameRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDGameRecord)) - } - { - const prefix string = ",\"ReceivingTDSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDSeasonHolderID)) - } - { - const prefix string = ",\"ReceivingTDSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.ReceivingTDSeasonHolder)) - } - { - const prefix string = ",\"ReceivingTDSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTDSeasonRecord)) - } - { - const prefix string = ",\"ReceivingYardsCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYardsCareerHolderID)) - } - { - const prefix string = ",\"ReceivingYardsCareerHolder\":" - out.RawString(prefix) - out.String(string(in.ReceivingYardsCareerHolder)) - } - { - const prefix string = ",\"ReceivingYardsCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYardsCareerRecord)) - } - { - const prefix string = ",\"ReceivingYardsGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYardsGameHolderID)) - } - { - const prefix string = ",\"ReceivingYardsGameHolder\":" - out.RawString(prefix) - out.String(string(in.ReceivingYardsGameHolder)) - } - { - const prefix string = ",\"ReceivingYardsGameRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYardsGameRecord)) - } - { - const prefix string = ",\"ReceivingYardsSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYardsSeasonHolderID)) - } - { - const prefix string = ",\"ReceivingYardsSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.ReceivingYardsSeasonHolder)) - } - { - const prefix string = ",\"ReceivingYardsSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYardsSeasonRecord)) - } - { - const prefix string = ",\"ReceptionsCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceptionsCareerHolderID)) - } - { - const prefix string = ",\"ReceptionsCareerHolder\":" - out.RawString(prefix) - out.String(string(in.ReceptionsCareerHolder)) - } - { - const prefix string = ",\"ReceptionsCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceptionsCareerRecord)) - } - { - const prefix string = ",\"ReceptionsGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceptionsGameHolderID)) - } - { - const prefix string = ",\"ReceptionsGameHolder\":" - out.RawString(prefix) - out.String(string(in.ReceptionsGameHolder)) - } - { - const prefix string = ",\"ReceptionsGameRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceptionsGameRecord)) - } - { - const prefix string = ",\"ReceptionsSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.ReceptionsSeasonHolderID)) - } - { - const prefix string = ",\"ReceptionsSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.ReceptionsSeasonHolder)) - } - { - const prefix string = ",\"ReceptionsSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.ReceptionsSeasonRecord)) - } - { - const prefix string = ",\"InterceptionsCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsCareerHolderID)) - } - { - const prefix string = ",\"InterceptionsCareerHolder\":" - out.RawString(prefix) - out.String(string(in.InterceptionsCareerHolder)) - } - { - const prefix string = ",\"InterceptionsCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsCareerRecord)) - } - { - const prefix string = ",\"InterceptionsGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsGameHolderID)) - } - { - const prefix string = ",\"InterceptionsGameHolder\":" - out.RawString(prefix) - out.String(string(in.InterceptionsGameHolder)) - } - { - const prefix string = ",\"InterceptionsGameRecord\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsGameRecord)) - } - { - const prefix string = ",\"InterceptionsSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsSeasonHolderID)) - } - { - const prefix string = ",\"InterceptionsSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.InterceptionsSeasonHolder)) - } - { - const prefix string = ",\"InterceptionsSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.InterceptionsSeasonRecord)) - } - { - const prefix string = ",\"SacksCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.SacksCareerHolderID)) - } - { - const prefix string = ",\"SacksCareerHolder\":" - out.RawString(prefix) - out.String(string(in.SacksCareerHolder)) - } - { - const prefix string = ",\"SacksCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.SacksCareerRecord)) - } - { - const prefix string = ",\"SacksGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.SacksGameHolderID)) - } - { - const prefix string = ",\"SacksGameHolder\":" - out.RawString(prefix) - out.String(string(in.SacksGameHolder)) - } - { - const prefix string = ",\"SacksGameRecord\":" - out.RawString(prefix) - out.Int(int(in.SacksGameRecord)) - } - { - const prefix string = ",\"SacksSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.SacksSeasonHolderID)) - } - { - const prefix string = ",\"SacksSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.SacksSeasonHolder)) - } - { - const prefix string = ",\"SacksSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.SacksSeasonRecord)) - } - { - const prefix string = ",\"TacklesCareerHolderID\":" - out.RawString(prefix) - out.Int(int(in.TacklesCareerHolderID)) - } - { - const prefix string = ",\"TacklesCareerHolder\":" - out.RawString(prefix) - out.String(string(in.TacklesCareerHolder)) - } - { - const prefix string = ",\"TacklesCareerRecord\":" - out.RawString(prefix) - out.Int(int(in.TacklesCareerRecord)) - } - { - const prefix string = ",\"TacklesGameHolderID\":" - out.RawString(prefix) - out.Int(int(in.TacklesGameHolderID)) - } - { - const prefix string = ",\"TacklesGameHolder\":" - out.RawString(prefix) - out.String(string(in.TacklesGameHolder)) - } - { - const prefix string = ",\"TacklesGameRecord\":" - out.RawString(prefix) - out.Int(int(in.TacklesGameRecord)) - } - { - const prefix string = ",\"TacklesSeasonHolderID\":" - out.RawString(prefix) - out.Int(int(in.TacklesSeasonHolderID)) - } - { - const prefix string = ",\"TacklesSeasonHolder\":" - out.RawString(prefix) - out.String(string(in.TacklesSeasonHolder)) - } - { - const prefix string = ",\"TacklesSeasonRecord\":" - out.RawString(prefix) - out.Int(int(in.TacklesSeasonRecord)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in *jlexer.Lexer, out *structs.CollegeTeamSeasonStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = uint(in.Uint()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Year": - out.Year = int(in.Int()) - case "GamesPlayed": - out.GamesPlayed = int(in.Int()) - case "TotalOffensiveYards": - out.TotalOffensiveYards = int(in.Int()) - case "TotalYardsAllowed": - out.TotalYardsAllowed = int(in.Int()) - case "Fumbles": - out.Fumbles = int(in.Int()) - case "QBRating": - out.QBRating = float64(in.Float64()) - case "Tackles": - out.Tackles = float64(in.Float64()) - case "Turnovers": - out.Turnovers = int(in.Int()) - case "PointsScored": - out.PointsScored = int(in.Int()) - case "PointsAgainst": - out.PointsAgainst = int(in.Int()) - case "TwoPointTries": - out.TwoPointTries = int(in.Int()) - case "TwoPointSucceed": - out.TwoPointSucceed = int(in.Int()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassingAttempts": - out.PassingAttempts = int(in.Int()) - case "PassingCompletions": - out.PassingCompletions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "PassingTouchdowns": - out.PassingTouchdowns = int(in.Int()) - case "PassingInterceptions": - out.PassingInterceptions = int(in.Int()) - case "QBSacks": - out.QBSacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingYardsPerAttempt": - out.RushingYardsPerAttempt = float64(in.Float64()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "RushingTouchdowns": - out.RushingTouchdowns = int(in.Int()) - case "RushingFumbles": - out.RushingFumbles = int(in.Int()) - case "ReceivingTargets": - out.ReceivingTargets = int(in.Int()) - case "ReceivingCatches": - out.ReceivingCatches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "YardsPerCatch": - out.YardsPerCatch = float64(in.Float64()) - case "ReceivingTouchdowns": - out.ReceivingTouchdowns = int(in.Int()) - case "ReceivingFumbles": - out.ReceivingFumbles = int(in.Int()) - case "PassingYardsAllowed": - out.PassingYardsAllowed = int(in.Int()) - case "PassingTDsAllowed": - out.PassingTDsAllowed = int(in.Int()) - case "PassingCompletionsAllowed": - out.PassingCompletionsAllowed = int(in.Int()) - case "RushingYardsAllowed": - out.RushingYardsAllowed = int(in.Int()) - case "RushingTDsAllowed": - out.RushingTDsAllowed = int(in.Int()) - case "RushingYardsPerAttemptAllowed": - out.RushingYardsPerAttemptAllowed = float64(in.Float64()) - case "SoloTackles": - out.SoloTackles = int(in.Int()) - case "AssistedTackles": - out.AssistedTackles = int(in.Int()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "DefensiveSacks": - out.DefensiveSacks = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "FumblesRecovered": - out.FumblesRecovered = int(in.Int()) - case "DefensiveInterceptions": - out.DefensiveInterceptions = int(in.Int()) - case "TurnoverYards": - out.TurnoverYards = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "ExtraPointPercentage": - out.ExtraPointPercentage = float64(in.Float64()) - case "FieldGoalsMade": - out.FieldGoalsMade = int(in.Int()) - case "FieldGoalsAttempted": - out.FieldGoalsAttempted = int(in.Int()) - case "FieldGoalsPercentage": - out.FieldGoalsPercentage = float64(in.Float64()) - case "LongestFieldGoal": - out.LongestFieldGoal = int(in.Int()) - case "KickoffTBs": - out.KickoffTBs = int(in.Int()) - case "PuntTBs": - out.PuntTBs = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "PuntYards": - out.PuntYards = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "PuntAverage": - out.PuntAverage = float64(in.Float64()) - case "Inside20YardLine": - out.Inside20YardLine = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "OffensivePenalties": - out.OffensivePenalties = int(in.Int()) - case "DefensivePenalties": - out.DefensivePenalties = int(in.Int()) - case "OffPenaltyYards": - out.OffPenaltyYards = int(in.Int()) - case "DefPenaltyYards": - out.DefPenaltyYards = int(in.Int()) - case "Score1Q": - out.Score1Q = int(in.Int()) - case "Score2Q": - out.Score2Q = int(in.Int()) - case "Score3Q": - out.Score3Q = int(in.Int()) - case "Score4Q": - out.Score4Q = int(in.Int()) - case "Score5Q": - out.Score5Q = int(in.Int()) - case "Score6Q": - out.Score6Q = int(in.Int()) - case "Score7Q": - out.Score7Q = int(in.Int()) - case "ScoreOT": - out.ScoreOT = int(in.Int()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "OffensiveSnaps": - out.OffensiveSnaps = uint16(in.Uint16()) - case "DefensiveSnaps": - out.DefensiveSnaps = uint16(in.Uint16()) - case "SpecialTeamSnaps": - out.SpecialTeamSnaps = uint16(in.Uint16()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.DeletedAt).UnmarshalJSON(data)) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out *jwriter.Writer, in structs.CollegeTeamSeasonStats) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Int(int(in.Year)) - } - { - const prefix string = ",\"GamesPlayed\":" - out.RawString(prefix) - out.Int(int(in.GamesPlayed)) - } - { - const prefix string = ",\"TotalOffensiveYards\":" - out.RawString(prefix) - out.Int(int(in.TotalOffensiveYards)) - } - { - const prefix string = ",\"TotalYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.TotalYardsAllowed)) - } - { - const prefix string = ",\"Fumbles\":" - out.RawString(prefix) - out.Int(int(in.Fumbles)) - } - { - const prefix string = ",\"QBRating\":" - out.RawString(prefix) - out.Float64(float64(in.QBRating)) - } - { - const prefix string = ",\"Tackles\":" - out.RawString(prefix) - out.Float64(float64(in.Tackles)) - } - { - const prefix string = ",\"Turnovers\":" - out.RawString(prefix) - out.Int(int(in.Turnovers)) - } - { - const prefix string = ",\"PointsScored\":" - out.RawString(prefix) - out.Int(int(in.PointsScored)) - } - { - const prefix string = ",\"PointsAgainst\":" - out.RawString(prefix) - out.Int(int(in.PointsAgainst)) - } - { - const prefix string = ",\"TwoPointTries\":" - out.RawString(prefix) - out.Int(int(in.TwoPointTries)) - } - { - const prefix string = ",\"TwoPointSucceed\":" - out.RawString(prefix) - out.Int(int(in.TwoPointSucceed)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassingAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassingAttempts)) - } - { - const prefix string = ",\"PassingCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassingCompletions)) - } - { - const prefix string = ",\"LongestPass\":" - out.RawString(prefix) - out.Int(int(in.LongestPass)) - } - { - const prefix string = ",\"PassingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.PassingTouchdowns)) - } - { - const prefix string = ",\"PassingInterceptions\":" - out.RawString(prefix) - out.Int(int(in.PassingInterceptions)) - } - { - const prefix string = ",\"QBSacks\":" - out.RawString(prefix) - out.Int(int(in.QBSacks)) - } - { - const prefix string = ",\"RushAttempts\":" - out.RawString(prefix) - out.Int(int(in.RushAttempts)) - } - { - const prefix string = ",\"RushingYards\":" - out.RawString(prefix) - out.Int(int(in.RushingYards)) - } - { - const prefix string = ",\"RushingYardsPerAttempt\":" - out.RawString(prefix) - out.Float64(float64(in.RushingYardsPerAttempt)) - } - { - const prefix string = ",\"LongestRush\":" - out.RawString(prefix) - out.Int(int(in.LongestRush)) - } - { - const prefix string = ",\"RushingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.RushingTouchdowns)) - } - { - const prefix string = ",\"RushingFumbles\":" - out.RawString(prefix) - out.Int(int(in.RushingFumbles)) - } - { - const prefix string = ",\"ReceivingTargets\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTargets)) - } - { - const prefix string = ",\"ReceivingCatches\":" - out.RawString(prefix) - out.Int(int(in.ReceivingCatches)) - } - { - const prefix string = ",\"ReceivingYards\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYards)) - } - { - const prefix string = ",\"YardsPerCatch\":" - out.RawString(prefix) - out.Float64(float64(in.YardsPerCatch)) - } - { - const prefix string = ",\"ReceivingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTouchdowns)) - } - { - const prefix string = ",\"ReceivingFumbles\":" - out.RawString(prefix) - out.Int(int(in.ReceivingFumbles)) - } - { - const prefix string = ",\"PassingYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsAllowed)) - } - { - const prefix string = ",\"PassingTDsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingTDsAllowed)) - } - { - const prefix string = ",\"PassingCompletionsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingCompletionsAllowed)) - } - { - const prefix string = ",\"RushingYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsAllowed)) - } - { - const prefix string = ",\"RushingTDsAllowed\":" - out.RawString(prefix) - out.Int(int(in.RushingTDsAllowed)) - } - { - const prefix string = ",\"RushingYardsPerAttemptAllowed\":" - out.RawString(prefix) - out.Float64(float64(in.RushingYardsPerAttemptAllowed)) - } - { - const prefix string = ",\"SoloTackles\":" - out.RawString(prefix) - out.Int(int(in.SoloTackles)) - } - { - const prefix string = ",\"AssistedTackles\":" - out.RawString(prefix) - out.Int(int(in.AssistedTackles)) - } - { - const prefix string = ",\"TacklesForLoss\":" - out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) - } - { - const prefix string = ",\"DefensiveSacks\":" - out.RawString(prefix) - out.Float64(float64(in.DefensiveSacks)) - } - { - const prefix string = ",\"ForcedFumbles\":" - out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) - } - { - const prefix string = ",\"FumblesRecovered\":" - out.RawString(prefix) - out.Int(int(in.FumblesRecovered)) - } - { - const prefix string = ",\"DefensiveInterceptions\":" - out.RawString(prefix) - out.Int(int(in.DefensiveInterceptions)) - } - { - const prefix string = ",\"TurnoverYards\":" - out.RawString(prefix) - out.Int(int(in.TurnoverYards)) - } - { - const prefix string = ",\"DefensiveTDs\":" - out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) - } - { - const prefix string = ",\"Safeties\":" - out.RawString(prefix) - out.Int(int(in.Safeties)) - } - { - const prefix string = ",\"ExtraPointsMade\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) - } - { - const prefix string = ",\"ExtraPointsAttempted\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) - } - { - const prefix string = ",\"ExtraPointPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.ExtraPointPercentage)) - } - { - const prefix string = ",\"FieldGoalsMade\":" - out.RawString(prefix) - out.Int(int(in.FieldGoalsMade)) - } - { - const prefix string = ",\"FieldGoalsAttempted\":" - out.RawString(prefix) - out.Int(int(in.FieldGoalsAttempted)) - } - { - const prefix string = ",\"FieldGoalsPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.FieldGoalsPercentage)) - } - { - const prefix string = ",\"LongestFieldGoal\":" - out.RawString(prefix) - out.Int(int(in.LongestFieldGoal)) - } - { - const prefix string = ",\"KickoffTBs\":" - out.RawString(prefix) - out.Int(int(in.KickoffTBs)) - } - { - const prefix string = ",\"PuntTBs\":" - out.RawString(prefix) - out.Int(int(in.PuntTBs)) - } - { - const prefix string = ",\"Punts\":" - out.RawString(prefix) - out.Int(int(in.Punts)) - } - { - const prefix string = ",\"PuntYards\":" - out.RawString(prefix) - out.Int(int(in.PuntYards)) - } - { - const prefix string = ",\"PuntsInside20\":" - out.RawString(prefix) - out.Int(int(in.PuntsInside20)) - } - { - const prefix string = ",\"PuntAverage\":" - out.RawString(prefix) - out.Float64(float64(in.PuntAverage)) - } - { - const prefix string = ",\"Inside20YardLine\":" - out.RawString(prefix) - out.Int(int(in.Inside20YardLine)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"OffensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.OffensivePenalties)) - } - { - const prefix string = ",\"DefensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.DefensivePenalties)) - } - { - const prefix string = ",\"OffPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.OffPenaltyYards)) - } - { - const prefix string = ",\"DefPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.DefPenaltyYards)) - } - { - const prefix string = ",\"Score1Q\":" - out.RawString(prefix) - out.Int(int(in.Score1Q)) - } - { - const prefix string = ",\"Score2Q\":" - out.RawString(prefix) - out.Int(int(in.Score2Q)) - } - { - const prefix string = ",\"Score3Q\":" - out.RawString(prefix) - out.Int(int(in.Score3Q)) - } - { - const prefix string = ",\"Score4Q\":" - out.RawString(prefix) - out.Int(int(in.Score4Q)) - } - { - const prefix string = ",\"Score5Q\":" - out.RawString(prefix) - out.Int(int(in.Score5Q)) - } - { - const prefix string = ",\"Score6Q\":" - out.RawString(prefix) - out.Int(int(in.Score6Q)) - } - { - const prefix string = ",\"Score7Q\":" - out.RawString(prefix) - out.Int(int(in.Score7Q)) - } - { - const prefix string = ",\"ScoreOT\":" - out.RawString(prefix) - out.Int(int(in.ScoreOT)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"OffensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.OffensiveSnaps)) - } - { - const prefix string = ",\"DefensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.DefensiveSnaps)) - } - { - const prefix string = ",\"SpecialTeamSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.SpecialTeamSnaps)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - out.Raw((in.DeletedAt).MarshalJSON()) - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, out *structs.CollegeTeamStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = int(in.Int()) - case "GameID": - out.GameID = int(in.Int()) - case "WeekID": - out.WeekID = int(in.Int()) - case "SeasonID": - out.SeasonID = int(in.Int()) - case "OpposingTeam": - out.OpposingTeam = string(in.String()) - case "PointsScored": - out.PointsScored = int(in.Int()) - case "PointsAgainst": - out.PointsAgainst = int(in.Int()) - case "TwoPointTries": - out.TwoPointTries = int(in.Int()) - case "TwoPointSucceed": - out.TwoPointSucceed = int(in.Int()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassingAttempts": - out.PassingAttempts = int(in.Int()) - case "PassingCompletions": - out.PassingCompletions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "PassingTouchdowns": - out.PassingTouchdowns = int(in.Int()) - case "PassingInterceptions": - out.PassingInterceptions = int(in.Int()) - case "QBRating": - out.QBRating = int(in.Int()) - case "QBSacks": - out.QBSacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingYardsPerAttempt": - out.RushingYardsPerAttempt = float64(in.Float64()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "RushingTouchdowns": - out.RushingTouchdowns = int(in.Int()) - case "RushingFumbles": - out.RushingFumbles = int(in.Int()) - case "ReceivingTargets": - out.ReceivingTargets = int(in.Int()) - case "ReceivingCatches": - out.ReceivingCatches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "YardsPerCatch": - out.YardsPerCatch = float64(in.Float64()) - case "ReceivingTouchdowns": - out.ReceivingTouchdowns = int(in.Int()) - case "ReceivingFumbles": - out.ReceivingFumbles = int(in.Int()) - case "PassingYardsAllowed": - out.PassingYardsAllowed = int(in.Int()) - case "PassingTDsAllowed": - out.PassingTDsAllowed = int(in.Int()) - case "PassingCompletionsAllowed": - out.PassingCompletionsAllowed = int(in.Int()) - case "RushingYardsAllowed": - out.RushingYardsAllowed = int(in.Int()) - case "RushingTDsAllowed": - out.RushingTDsAllowed = int(in.Int()) - case "RushingYardsPerAttemptAllowed": - out.RushingYardsPerAttemptAllowed = float64(in.Float64()) - case "SoloTackles": - out.SoloTackles = int(in.Int()) - case "AssistedTackles": - out.AssistedTackles = int(in.Int()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "DefensiveSacks": - out.DefensiveSacks = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "FumblesRecovered": - out.FumblesRecovered = int(in.Int()) - case "DefensiveInterceptions": - out.DefensiveInterceptions = int(in.Int()) - case "TurnoverYards": - out.TurnoverYards = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "ExtraPointPercentage": - out.ExtraPointPercentage = float64(in.Float64()) - case "FieldGoalsMade": - out.FieldGoalsMade = int(in.Int()) - case "FieldGoalsAttempted": - out.FieldGoalsAttempted = int(in.Int()) - case "FieldGoalsPercentage": - out.FieldGoalsPercentage = float64(in.Float64()) - case "LongestFieldGoal": - out.LongestFieldGoal = int(in.Int()) - case "KickoffTBs": - out.KickoffTBs = int(in.Int()) - case "PuntTBs": - out.PuntTBs = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "PuntYards": - out.PuntYards = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "PuntAverage": - out.PuntAverage = float64(in.Float64()) - case "Inside20YardLine": - out.Inside20YardLine = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "OffensivePenalties": - out.OffensivePenalties = int(in.Int()) - case "DefensivePenalties": - out.DefensivePenalties = int(in.Int()) - case "OffPenaltyYards": - out.OffPenaltyYards = int(in.Int()) - case "DefPenaltyYards": - out.DefPenaltyYards = int(in.Int()) - case "Score1Q": - out.Score1Q = int(in.Int()) - case "Score2Q": - out.Score2Q = int(in.Int()) - case "Score3Q": - out.Score3Q = int(in.Int()) - case "Score4Q": - out.Score4Q = int(in.Int()) - case "Score5Q": - out.Score5Q = int(in.Int()) - case "Score6Q": - out.Score6Q = int(in.Int()) - case "Score7Q": - out.Score7Q = int(in.Int()) - case "ScoreOT": - out.ScoreOT = int(in.Int()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "OffensiveSnaps": - out.OffensiveSnaps = uint16(in.Uint16()) - case "DefensiveSnaps": - out.DefensiveSnaps = uint16(in.Uint16()) - case "SpecialTeamSnaps": - out.SpecialTeamSnaps = uint16(in.Uint16()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer, in structs.CollegeTeamStats) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"GameID\":" - out.RawString(prefix) - out.Int(int(in.GameID)) - } - { - const prefix string = ",\"WeekID\":" - out.RawString(prefix) - out.Int(int(in.WeekID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Int(int(in.SeasonID)) - } - { - const prefix string = ",\"OpposingTeam\":" - out.RawString(prefix) - out.String(string(in.OpposingTeam)) - } - { - const prefix string = ",\"PointsScored\":" - out.RawString(prefix) - out.Int(int(in.PointsScored)) - } - { - const prefix string = ",\"PointsAgainst\":" - out.RawString(prefix) - out.Int(int(in.PointsAgainst)) - } - { - const prefix string = ",\"TwoPointTries\":" - out.RawString(prefix) - out.Int(int(in.TwoPointTries)) - } - { - const prefix string = ",\"TwoPointSucceed\":" - out.RawString(prefix) - out.Int(int(in.TwoPointSucceed)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassingAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassingAttempts)) - } - { - const prefix string = ",\"PassingCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassingCompletions)) - } - { - const prefix string = ",\"LongestPass\":" - out.RawString(prefix) - out.Int(int(in.LongestPass)) - } - { - const prefix string = ",\"PassingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.PassingTouchdowns)) - } - { - const prefix string = ",\"PassingInterceptions\":" - out.RawString(prefix) - out.Int(int(in.PassingInterceptions)) - } - { - const prefix string = ",\"QBRating\":" - out.RawString(prefix) - out.Int(int(in.QBRating)) - } - { - const prefix string = ",\"QBSacks\":" - out.RawString(prefix) - out.Int(int(in.QBSacks)) - } - { - const prefix string = ",\"RushAttempts\":" - out.RawString(prefix) - out.Int(int(in.RushAttempts)) - } - { - const prefix string = ",\"RushingYards\":" - out.RawString(prefix) - out.Int(int(in.RushingYards)) - } - { - const prefix string = ",\"RushingYardsPerAttempt\":" - out.RawString(prefix) - out.Float64(float64(in.RushingYardsPerAttempt)) - } - { - const prefix string = ",\"LongestRush\":" - out.RawString(prefix) - out.Int(int(in.LongestRush)) - } - { - const prefix string = ",\"RushingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.RushingTouchdowns)) - } - { - const prefix string = ",\"RushingFumbles\":" - out.RawString(prefix) - out.Int(int(in.RushingFumbles)) - } - { - const prefix string = ",\"ReceivingTargets\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTargets)) - } - { - const prefix string = ",\"ReceivingCatches\":" - out.RawString(prefix) - out.Int(int(in.ReceivingCatches)) - } - { - const prefix string = ",\"ReceivingYards\":" - out.RawString(prefix) - out.Int(int(in.ReceivingYards)) - } - { - const prefix string = ",\"YardsPerCatch\":" - out.RawString(prefix) - out.Float64(float64(in.YardsPerCatch)) - } - { - const prefix string = ",\"ReceivingTouchdowns\":" - out.RawString(prefix) - out.Int(int(in.ReceivingTouchdowns)) - } - { - const prefix string = ",\"ReceivingFumbles\":" - out.RawString(prefix) - out.Int(int(in.ReceivingFumbles)) - } - { - const prefix string = ",\"PassingYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingYardsAllowed)) - } - { - const prefix string = ",\"PassingTDsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingTDsAllowed)) - } - { - const prefix string = ",\"PassingCompletionsAllowed\":" - out.RawString(prefix) - out.Int(int(in.PassingCompletionsAllowed)) - } - { - const prefix string = ",\"RushingYardsAllowed\":" - out.RawString(prefix) - out.Int(int(in.RushingYardsAllowed)) - } - { - const prefix string = ",\"RushingTDsAllowed\":" - out.RawString(prefix) - out.Int(int(in.RushingTDsAllowed)) - } - { - const prefix string = ",\"RushingYardsPerAttemptAllowed\":" - out.RawString(prefix) - out.Float64(float64(in.RushingYardsPerAttemptAllowed)) - } - { - const prefix string = ",\"SoloTackles\":" - out.RawString(prefix) - out.Int(int(in.SoloTackles)) - } - { - const prefix string = ",\"AssistedTackles\":" - out.RawString(prefix) - out.Int(int(in.AssistedTackles)) - } - { - const prefix string = ",\"TacklesForLoss\":" - out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) - } - { - const prefix string = ",\"DefensiveSacks\":" - out.RawString(prefix) - out.Float64(float64(in.DefensiveSacks)) - } - { - const prefix string = ",\"ForcedFumbles\":" - out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) - } - { - const prefix string = ",\"FumblesRecovered\":" - out.RawString(prefix) - out.Int(int(in.FumblesRecovered)) - } - { - const prefix string = ",\"DefensiveInterceptions\":" - out.RawString(prefix) - out.Int(int(in.DefensiveInterceptions)) - } - { - const prefix string = ",\"TurnoverYards\":" - out.RawString(prefix) - out.Int(int(in.TurnoverYards)) - } - { - const prefix string = ",\"DefensiveTDs\":" - out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) - } - { - const prefix string = ",\"Safeties\":" - out.RawString(prefix) - out.Int(int(in.Safeties)) - } - { - const prefix string = ",\"ExtraPointsMade\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) - } - { - const prefix string = ",\"ExtraPointsAttempted\":" - out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) - } - { - const prefix string = ",\"ExtraPointPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.ExtraPointPercentage)) - } - { - const prefix string = ",\"FieldGoalsMade\":" - out.RawString(prefix) - out.Int(int(in.FieldGoalsMade)) - } - { - const prefix string = ",\"FieldGoalsAttempted\":" - out.RawString(prefix) - out.Int(int(in.FieldGoalsAttempted)) - } - { - const prefix string = ",\"FieldGoalsPercentage\":" - out.RawString(prefix) - out.Float64(float64(in.FieldGoalsPercentage)) - } - { - const prefix string = ",\"LongestFieldGoal\":" - out.RawString(prefix) - out.Int(int(in.LongestFieldGoal)) - } - { - const prefix string = ",\"KickoffTBs\":" - out.RawString(prefix) - out.Int(int(in.KickoffTBs)) - } - { - const prefix string = ",\"PuntTBs\":" - out.RawString(prefix) - out.Int(int(in.PuntTBs)) - } - { - const prefix string = ",\"Punts\":" - out.RawString(prefix) - out.Int(int(in.Punts)) - } - { - const prefix string = ",\"PuntYards\":" - out.RawString(prefix) - out.Int(int(in.PuntYards)) - } - { - const prefix string = ",\"PuntsInside20\":" - out.RawString(prefix) - out.Int(int(in.PuntsInside20)) - } - { - const prefix string = ",\"PuntAverage\":" - out.RawString(prefix) - out.Float64(float64(in.PuntAverage)) - } - { - const prefix string = ",\"Inside20YardLine\":" - out.RawString(prefix) - out.Int(int(in.Inside20YardLine)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"OffensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.OffensivePenalties)) - } - { - const prefix string = ",\"DefensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.DefensivePenalties)) - } - { - const prefix string = ",\"OffPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.OffPenaltyYards)) - } - { - const prefix string = ",\"DefPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.DefPenaltyYards)) - } - { - const prefix string = ",\"Score1Q\":" - out.RawString(prefix) - out.Int(int(in.Score1Q)) - } - { - const prefix string = ",\"Score2Q\":" - out.RawString(prefix) - out.Int(int(in.Score2Q)) - } - { - const prefix string = ",\"Score3Q\":" - out.RawString(prefix) - out.Int(int(in.Score3Q)) - } - { - const prefix string = ",\"Score4Q\":" - out.RawString(prefix) - out.Int(int(in.Score4Q)) - } - { - const prefix string = ",\"Score5Q\":" - out.RawString(prefix) - out.Int(int(in.Score5Q)) - } - { - const prefix string = ",\"Score6Q\":" - out.RawString(prefix) - out.Int(int(in.Score6Q)) - } - { - const prefix string = ",\"Score7Q\":" - out.RawString(prefix) - out.Int(int(in.Score7Q)) - } - { - const prefix string = ",\"ScoreOT\":" - out.RawString(prefix) - out.Int(int(in.ScoreOT)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"OffensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.OffensiveSnaps)) - } - { - const prefix string = ",\"DefensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.DefensiveSnaps)) - } - { - const prefix string = ",\"SpecialTeamSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.SpecialTeamSnaps)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, out *structs.CollegeCoach) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "CoachName": - out.CoachName = string(in.String()) - case "Age": - out.Age = int(in.Int()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "AlmaMaterID": - out.AlmaMaterID = uint(in.Uint()) - case "AlmaMater": - out.AlmaMater = string(in.String()) - case "FormerPlayerID": - out.FormerPlayerID = uint(in.Uint()) - case "Prestige": - out.Prestige = int(in.Int()) - case "PointMin": - out.PointMin = int(in.Int()) - case "PointMax": - out.PointMax = int(in.Int()) - case "StarMin": - out.StarMin = int(in.Int()) - case "StarMax": - out.StarMax = int(in.Int()) - case "Odds1": - out.Odds1 = int(in.Int()) - case "Odds2": - out.Odds2 = int(in.Int()) - case "Odds3": - out.Odds3 = int(in.Int()) - case "Odds4": - out.Odds4 = int(in.Int()) - case "Odds5": - out.Odds5 = int(in.Int()) - case "PositionOne": - out.PositionOne = string(in.String()) - case "PositionTwo": - out.PositionTwo = string(in.String()) - case "PositionThree": - out.PositionThree = string(in.String()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "TeambuildingPreference": - out.TeambuildingPreference = string(in.String()) - case "CareerPreference": - out.CareerPreference = string(in.String()) - case "PromiseTendency": - out.PromiseTendency = string(in.String()) - case "PortalReputation": - out.PortalReputation = int(in.Int()) - case "SchoolTenure": - out.SchoolTenure = int(in.Int()) - case "CareerTenure": - out.CareerTenure = int(in.Int()) - case "ContractLength": - out.ContractLength = int(in.Int()) - case "YearsRemaining": - out.YearsRemaining = int(in.Int()) - case "OverallWins": - out.OverallWins = int(in.Int()) - case "OverallLosses": - out.OverallLosses = int(in.Int()) - case "OverallConferenceChampionships": - out.OverallConferenceChampionships = int(in.Int()) - case "BowlWins": - out.BowlWins = int(in.Int()) - case "BowlLosses": - out.BowlLosses = int(in.Int()) - case "PlayoffWins": - out.PlayoffWins = int(in.Int()) - case "PlayoffLosses": - out.PlayoffLosses = int(in.Int()) - case "NationalChampionships": - out.NationalChampionships = int(in.Int()) - case "IsUser": - out.IsUser = bool(in.Bool()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsRetired": - out.IsRetired = bool(in.Bool()) - case "IsFormerPlayer": - out.IsFormerPlayer = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer, in structs.CollegeCoach) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"CoachName\":" - out.RawString(prefix[1:]) - out.String(string(in.CoachName)) - } - { - const prefix string = ",\"Age\":" - out.RawString(prefix) - out.Int(int(in.Age)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"AlmaMaterID\":" - out.RawString(prefix) - out.Uint(uint(in.AlmaMaterID)) - } - { - const prefix string = ",\"AlmaMater\":" - out.RawString(prefix) - out.String(string(in.AlmaMater)) - } - { - const prefix string = ",\"FormerPlayerID\":" - out.RawString(prefix) - out.Uint(uint(in.FormerPlayerID)) - } - { - const prefix string = ",\"Prestige\":" - out.RawString(prefix) - out.Int(int(in.Prestige)) - } - { - const prefix string = ",\"PointMin\":" - out.RawString(prefix) - out.Int(int(in.PointMin)) - } - { - const prefix string = ",\"PointMax\":" - out.RawString(prefix) - out.Int(int(in.PointMax)) - } - { - const prefix string = ",\"StarMin\":" - out.RawString(prefix) - out.Int(int(in.StarMin)) - } - { - const prefix string = ",\"StarMax\":" - out.RawString(prefix) - out.Int(int(in.StarMax)) - } - { - const prefix string = ",\"Odds1\":" - out.RawString(prefix) - out.Int(int(in.Odds1)) - } - { - const prefix string = ",\"Odds2\":" - out.RawString(prefix) - out.Int(int(in.Odds2)) - } - { - const prefix string = ",\"Odds3\":" - out.RawString(prefix) - out.Int(int(in.Odds3)) - } - { - const prefix string = ",\"Odds4\":" - out.RawString(prefix) - out.Int(int(in.Odds4)) - } - { - const prefix string = ",\"Odds5\":" - out.RawString(prefix) - out.Int(int(in.Odds5)) - } - { - const prefix string = ",\"PositionOne\":" - out.RawString(prefix) - out.String(string(in.PositionOne)) - } - { - const prefix string = ",\"PositionTwo\":" - out.RawString(prefix) - out.String(string(in.PositionTwo)) - } - { - const prefix string = ",\"PositionThree\":" - out.RawString(prefix) - out.String(string(in.PositionThree)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"TeambuildingPreference\":" - out.RawString(prefix) - out.String(string(in.TeambuildingPreference)) - } - { - const prefix string = ",\"CareerPreference\":" - out.RawString(prefix) - out.String(string(in.CareerPreference)) - } - { - const prefix string = ",\"PromiseTendency\":" - out.RawString(prefix) - out.String(string(in.PromiseTendency)) - } - { - const prefix string = ",\"PortalReputation\":" - out.RawString(prefix) - out.Int(int(in.PortalReputation)) - } - { - const prefix string = ",\"SchoolTenure\":" - out.RawString(prefix) - out.Int(int(in.SchoolTenure)) - } - { - const prefix string = ",\"CareerTenure\":" - out.RawString(prefix) - out.Int(int(in.CareerTenure)) - } - { - const prefix string = ",\"ContractLength\":" - out.RawString(prefix) - out.Int(int(in.ContractLength)) - } - { - const prefix string = ",\"YearsRemaining\":" - out.RawString(prefix) - out.Int(int(in.YearsRemaining)) - } - { - const prefix string = ",\"OverallWins\":" - out.RawString(prefix) - out.Int(int(in.OverallWins)) - } - { - const prefix string = ",\"OverallLosses\":" - out.RawString(prefix) - out.Int(int(in.OverallLosses)) - } - { - const prefix string = ",\"OverallConferenceChampionships\":" - out.RawString(prefix) - out.Int(int(in.OverallConferenceChampionships)) - } - { - const prefix string = ",\"BowlWins\":" - out.RawString(prefix) - out.Int(int(in.BowlWins)) - } - { - const prefix string = ",\"BowlLosses\":" - out.RawString(prefix) - out.Int(int(in.BowlLosses)) - } - { - const prefix string = ",\"PlayoffWins\":" - out.RawString(prefix) - out.Int(int(in.PlayoffWins)) - } - { - const prefix string = ",\"PlayoffLosses\":" - out.RawString(prefix) - out.Int(int(in.PlayoffLosses)) - } - { - const prefix string = ",\"NationalChampionships\":" - out.RawString(prefix) - out.Int(int(in.NationalChampionships)) - } - { - const prefix string = ",\"IsUser\":" - out.RawString(prefix) - out.Bool(bool(in.IsUser)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - { - const prefix string = ",\"IsRetired\":" - out.RawString(prefix) - out.Bool(bool(in.IsRetired)) - } - { - const prefix string = ",\"IsFormerPlayer\":" - out.RawString(prefix) - out.Bool(bool(in.IsFormerPlayer)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} diff --git a/managers/DraftManager.go b/managers/DraftManager.go index c62fc9e6..09db702c 100644 --- a/managers/DraftManager.go +++ b/managers/DraftManager.go @@ -112,6 +112,34 @@ func GetNFLWarRoomByTeamID(TeamID string) models.NFLWarRoom { return warRoom } + +func GetNFLWarRooms() []models.NFLWarRoom { + db := dbprovider.GetInstance().GetDB() + + warRooms := []models.NFLWarRoom{} + ts := GetTimestamp() + err := db.Preload("DraftPicks", "season_id = ?", strconv.Itoa(int(ts.NFLSeasonID))). + Find(&warRooms).Error + if err != nil { + return warRooms + } + + return warRooms +} + +func GetAllScoutingProfiles() []models.ScoutingProfile { + db := dbprovider.GetInstance().GetDB() + + profiles := []models.ScoutingProfile{} + err := db.Where("removed_from_board = ?", false). + Find(&profiles).Error + if err != nil { + return profiles + } + + return profiles +} + func GetNFLDrafteesForDraftPage() []models.NFLDraftee { db := dbprovider.GetInstance().GetDB() draftees := []models.NFLDraftee{} diff --git a/managers/MapHelper.go b/managers/MapHelper.go index 4734e42b..c84dc18a 100644 --- a/managers/MapHelper.go +++ b/managers/MapHelper.go @@ -1,6 +1,9 @@ package managers -import "github.com/CalebRose/SimFBA/structs" +import ( + "github.com/CalebRose/SimFBA/models" + "github.com/CalebRose/SimFBA/structs" +) func MapNFLPlayers(nflPlayers []structs.NFLPlayer) map[uint]structs.NFLPlayer { playerMap := make(map[uint]structs.NFLPlayer) @@ -265,6 +268,27 @@ func MakePromiseMapByTeamID(profiles []structs.CollegePromise) map[uint][]struct return playerMap } + +func MakeNFLWarRoomMap(warRooms []models.NFLWarRoom) map[uint]models.NFLWarRoom { + warRoomMap := make(map[uint]models.NFLWarRoom) + + for _, t := range warRooms { + warRoomMap[t.TeamID] = t + } + + return warRoomMap +} + +func MakeScoutingProfileMapByTeam(profiles []models.ScoutingProfile) map[uint]models.ScoutingProfile { + profileMap := make(map[uint]models.ScoutingProfile) + + for _, t := range profiles { + profileMap[t.TeamID] = t + } + + return profileMap +} + func MakePromiseMapByPlayerIDByTeam(promises []structs.CollegePromise) map[uint]structs.CollegePromise { playerMap := make(map[uint]structs.CollegePromise) diff --git a/managers/NewsManager.go b/managers/NewsManager.go index 851951ca..a1d0f1b7 100644 --- a/managers/NewsManager.go +++ b/managers/NewsManager.go @@ -44,7 +44,7 @@ func GetNFLRelatedNews(TeamID string) []structs.NewsLog { func GetCFBRelatedNews(TeamID string) []structs.NewsLog { ts := GetTimestamp() - newsLogs := GetAllNewsLogs() + newsLogs := GetAllCFBNewsLogs() sort.Slice(newsLogs, func(i, j int) bool { return newsLogs[i].CreatedAt.Unix() > newsLogs[j].CreatedAt.Unix() From 9369f5645d7c4e5dcb06d3c0156b177ffeb61b2a Mon Sep 17 00:00:00 2001 From: jedibob5 Date: Wed, 15 Oct 2025 16:37:58 -0500 Subject: [PATCH 2/3] fix up gameplanmap --- controller/BootstrapController.go | 2 +- managers/BootstrapManager_easyjson.go | 22227 ++++++++++++++++++++++++ 2 files changed, 22228 insertions(+), 1 deletion(-) create mode 100644 managers/BootstrapManager_easyjson.go diff --git a/controller/BootstrapController.go b/controller/BootstrapController.go index 64faafc0..ef2eb0ec 100644 --- a/controller/BootstrapController.go +++ b/controller/BootstrapController.go @@ -121,7 +121,7 @@ func BootstrapGameplanData(w http.ResponseWriter, r *http.Request) { vars := mux.Vars(r) collegeID := vars["collegeID"] proID := vars["proID"] - data := managers.GetTeamRosterBootstrap(collegeID, proID) + data := managers.GetGameplanBootstrap(collegeID, proID) bootstrapData, err := easyjson.Marshal(data) if err != nil { log.Printf("Failed to encode JSON response: %v", err) diff --git a/managers/BootstrapManager_easyjson.go b/managers/BootstrapManager_easyjson.go new file mode 100644 index 00000000..3ef4c670 --- /dev/null +++ b/managers/BootstrapManager_easyjson.go @@ -0,0 +1,22227 @@ +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. + +package managers + +import ( + sql "database/sql" + json "encoding/json" + models "github.com/CalebRose/SimFBA/models" + structs "github.com/CalebRose/SimFBA/structs" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" + time "time" +) + +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) + +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(in *jlexer.Lexer, out *CollegeTeamProfileData) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CareerStats": + if in.IsNull() { + in.Skip() + out.CareerStats = nil + } else { + in.Delim('[') + if out.CareerStats == nil { + if !in.IsDelim(']') { + out.CareerStats = make([]structs.CollegePlayerSeasonStats, 0, 0) + } else { + out.CareerStats = []structs.CollegePlayerSeasonStats{} + } + } else { + out.CareerStats = (out.CareerStats)[:0] + } + for !in.IsDelim(']') { + var v1 structs.CollegePlayerSeasonStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in, &v1) + out.CareerStats = append(out.CareerStats, v1) + in.WantComma() + } + in.Delim(']') + } + case "CollegeStandings": + if in.IsNull() { + in.Skip() + out.CollegeStandings = nil + } else { + in.Delim('[') + if out.CollegeStandings == nil { + if !in.IsDelim(']') { + out.CollegeStandings = make([]structs.CollegeStandings, 0, 0) + } else { + out.CollegeStandings = []structs.CollegeStandings{} + } + } else { + out.CollegeStandings = (out.CollegeStandings)[:0] + } + for !in.IsDelim(']') { + var v2 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v2) + out.CollegeStandings = append(out.CollegeStandings, v2) + in.WantComma() + } + in.Delim(']') + } + case "Rivalries": + if in.IsNull() { + in.Skip() + out.Rivalries = nil + } else { + in.Delim('[') + if out.Rivalries == nil { + if !in.IsDelim(']') { + out.Rivalries = make([]structs.FlexComparisonModel, 0, 0) + } else { + out.Rivalries = []structs.FlexComparisonModel{} + } + } else { + out.Rivalries = (out.Rivalries)[:0] + } + for !in.IsDelim(']') { + var v3 structs.FlexComparisonModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs2(in, &v3) + out.Rivalries = append(out.Rivalries, v3) + in.WantComma() + } + in.Delim(']') + } + case "PlayerMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.PlayerMap = make(map[uint]structs.CollegePlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v4 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v4) + (out.PlayerMap)[key] = v4 + in.WantComma() + } + in.Delim('}') + } + case "CollegeGames": + if in.IsNull() { + in.Skip() + out.CollegeGames = nil + } else { + in.Delim('[') + if out.CollegeGames == nil { + if !in.IsDelim(']') { + out.CollegeGames = make([]structs.CollegeGame, 0, 0) + } else { + out.CollegeGames = []structs.CollegeGame{} + } + } else { + out.CollegeGames = (out.CollegeGames)[:0] + } + for !in.IsDelim(']') { + var v5 structs.CollegeGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v5) + out.CollegeGames = append(out.CollegeGames, v5) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(out *jwriter.Writer, in CollegeTeamProfileData) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CareerStats\":" + out.RawString(prefix[1:]) + if in.CareerStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v6, v7 := range in.CareerStats { + if v6 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out, v7) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeStandings\":" + out.RawString(prefix) + if in.CollegeStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.CollegeStandings { + if v8 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v9) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"Rivalries\":" + out.RawString(prefix) + if in.Rivalries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v10, v11 := range in.Rivalries { + if v10 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs2(out, v11) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"PlayerMap\":" + out.RawString(prefix) + if in.PlayerMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v12First := true + for v12Name, v12Value := range in.PlayerMap { + if v12First { + v12First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v12Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v12Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"CollegeGames\":" + out.RawString(prefix) + if in.CollegeGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v13, v14 := range in.CollegeGames { + if v13 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v14) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CollegeTeamProfileData) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CollegeTeamProfileData) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CollegeTeamProfileData) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CollegeTeamProfileData) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in *jlexer.Lexer, out *structs.CollegeGame) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "WeekID": + out.WeekID = int(in.Int()) + case "Week": + out.Week = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "HomeTeamRank": + out.HomeTeamRank = uint(in.Uint()) + case "HomeTeamID": + out.HomeTeamID = int(in.Int()) + case "HomeTeam": + out.HomeTeam = string(in.String()) + case "HomeTeamCoach": + out.HomeTeamCoach = string(in.String()) + case "HomeTeamWin": + out.HomeTeamWin = bool(in.Bool()) + case "AwayTeamRank": + out.AwayTeamRank = uint(in.Uint()) + case "AwayTeamID": + out.AwayTeamID = int(in.Int()) + case "AwayTeam": + out.AwayTeam = string(in.String()) + case "AwayTeamCoach": + out.AwayTeamCoach = string(in.String()) + case "AwayTeamWin": + out.AwayTeamWin = bool(in.Bool()) + case "MVP": + out.MVP = string(in.String()) + case "HomeTeamScore": + out.HomeTeamScore = int(in.Int()) + case "AwayTeamScore": + out.AwayTeamScore = int(in.Int()) + case "TimeSlot": + out.TimeSlot = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Region": + out.Region = string(in.String()) + case "LowTemp": + out.LowTemp = float64(in.Float64()) + case "HighTemp": + out.HighTemp = float64(in.Float64()) + case "GameTemp": + out.GameTemp = float64(in.Float64()) + case "Cloud": + out.Cloud = string(in.String()) + case "Precip": + out.Precip = string(in.String()) + case "WindSpeed": + out.WindSpeed = float64(in.Float64()) + case "WindCategory": + out.WindCategory = string(in.String()) + case "IsNeutral": + out.IsNeutral = bool(in.Bool()) + case "IsDomed": + out.IsDomed = bool(in.Bool()) + case "IsNightGame": + out.IsNightGame = bool(in.Bool()) + case "IsConference": + out.IsConference = bool(in.Bool()) + case "IsDivisional": + out.IsDivisional = bool(in.Bool()) + case "IsConferenceChampionship": + out.IsConferenceChampionship = bool(in.Bool()) + case "IsBowlGame": + out.IsBowlGame = bool(in.Bool()) + case "IsPlayoffGame": + out.IsPlayoffGame = bool(in.Bool()) + case "IsNationalChampionship": + out.IsNationalChampionship = bool(in.Bool()) + case "IsRivalryGame": + out.IsRivalryGame = bool(in.Bool()) + case "GameComplete": + out.GameComplete = bool(in.Bool()) + case "IsSpringGame": + out.IsSpringGame = bool(in.Bool()) + case "GameTitle": + out.GameTitle = string(in.String()) + case "NextGameID": + out.NextGameID = uint(in.Uint()) + case "NextGameHOA": + out.NextGameHOA = string(in.String()) + case "HomePreviousBye": + out.HomePreviousBye = bool(in.Bool()) + case "AwayPreviousBye": + out.AwayPreviousBye = bool(in.Bool()) + case "ConferenceID": + out.ConferenceID = uint(in.Uint()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out *jwriter.Writer, in structs.CollegeGame) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix[1:]) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"Week\":" + out.RawString(prefix) + out.Int(int(in.Week)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"HomeTeamRank\":" + out.RawString(prefix) + out.Uint(uint(in.HomeTeamRank)) + } + { + const prefix string = ",\"HomeTeamID\":" + out.RawString(prefix) + out.Int(int(in.HomeTeamID)) + } + { + const prefix string = ",\"HomeTeam\":" + out.RawString(prefix) + out.String(string(in.HomeTeam)) + } + { + const prefix string = ",\"HomeTeamCoach\":" + out.RawString(prefix) + out.String(string(in.HomeTeamCoach)) + } + { + const prefix string = ",\"HomeTeamWin\":" + out.RawString(prefix) + out.Bool(bool(in.HomeTeamWin)) + } + { + const prefix string = ",\"AwayTeamRank\":" + out.RawString(prefix) + out.Uint(uint(in.AwayTeamRank)) + } + { + const prefix string = ",\"AwayTeamID\":" + out.RawString(prefix) + out.Int(int(in.AwayTeamID)) + } + { + const prefix string = ",\"AwayTeam\":" + out.RawString(prefix) + out.String(string(in.AwayTeam)) + } + { + const prefix string = ",\"AwayTeamCoach\":" + out.RawString(prefix) + out.String(string(in.AwayTeamCoach)) + } + { + const prefix string = ",\"AwayTeamWin\":" + out.RawString(prefix) + out.Bool(bool(in.AwayTeamWin)) + } + { + const prefix string = ",\"MVP\":" + out.RawString(prefix) + out.String(string(in.MVP)) + } + { + const prefix string = ",\"HomeTeamScore\":" + out.RawString(prefix) + out.Int(int(in.HomeTeamScore)) + } + { + const prefix string = ",\"AwayTeamScore\":" + out.RawString(prefix) + out.Int(int(in.AwayTeamScore)) + } + { + const prefix string = ",\"TimeSlot\":" + out.RawString(prefix) + out.String(string(in.TimeSlot)) + } + { + const prefix string = ",\"StadiumID\":" + out.RawString(prefix) + out.Uint(uint(in.StadiumID)) + } + { + const prefix string = ",\"Stadium\":" + out.RawString(prefix) + out.String(string(in.Stadium)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Region\":" + out.RawString(prefix) + out.String(string(in.Region)) + } + { + const prefix string = ",\"LowTemp\":" + out.RawString(prefix) + out.Float64(float64(in.LowTemp)) + } + { + const prefix string = ",\"HighTemp\":" + out.RawString(prefix) + out.Float64(float64(in.HighTemp)) + } + { + const prefix string = ",\"GameTemp\":" + out.RawString(prefix) + out.Float64(float64(in.GameTemp)) + } + { + const prefix string = ",\"Cloud\":" + out.RawString(prefix) + out.String(string(in.Cloud)) + } + { + const prefix string = ",\"Precip\":" + out.RawString(prefix) + out.String(string(in.Precip)) + } + { + const prefix string = ",\"WindSpeed\":" + out.RawString(prefix) + out.Float64(float64(in.WindSpeed)) + } + { + const prefix string = ",\"WindCategory\":" + out.RawString(prefix) + out.String(string(in.WindCategory)) + } + { + const prefix string = ",\"IsNeutral\":" + out.RawString(prefix) + out.Bool(bool(in.IsNeutral)) + } + { + const prefix string = ",\"IsDomed\":" + out.RawString(prefix) + out.Bool(bool(in.IsDomed)) + } + { + const prefix string = ",\"IsNightGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsNightGame)) + } + { + const prefix string = ",\"IsConference\":" + out.RawString(prefix) + out.Bool(bool(in.IsConference)) + } + { + const prefix string = ",\"IsDivisional\":" + out.RawString(prefix) + out.Bool(bool(in.IsDivisional)) + } + { + const prefix string = ",\"IsConferenceChampionship\":" + out.RawString(prefix) + out.Bool(bool(in.IsConferenceChampionship)) + } + { + const prefix string = ",\"IsBowlGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsBowlGame)) + } + { + const prefix string = ",\"IsPlayoffGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsPlayoffGame)) + } + { + const prefix string = ",\"IsNationalChampionship\":" + out.RawString(prefix) + out.Bool(bool(in.IsNationalChampionship)) + } + { + const prefix string = ",\"IsRivalryGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsRivalryGame)) + } + { + const prefix string = ",\"GameComplete\":" + out.RawString(prefix) + out.Bool(bool(in.GameComplete)) + } + { + const prefix string = ",\"IsSpringGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsSpringGame)) + } + { + const prefix string = ",\"GameTitle\":" + out.RawString(prefix) + out.String(string(in.GameTitle)) + } + { + const prefix string = ",\"NextGameID\":" + out.RawString(prefix) + out.Uint(uint(in.NextGameID)) + } + { + const prefix string = ",\"NextGameHOA\":" + out.RawString(prefix) + out.String(string(in.NextGameHOA)) + } + { + const prefix string = ",\"HomePreviousBye\":" + out.RawString(prefix) + out.Bool(bool(in.HomePreviousBye)) + } + { + const prefix string = ",\"AwayPreviousBye\":" + out.RawString(prefix) + out.Bool(bool(in.AwayPreviousBye)) + } + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix) + out.Uint(uint(in.ConferenceID)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in *jlexer.Lexer, out *structs.CollegePlayer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Year": + out.Year = int(in.Int()) + case "IsRedshirt": + out.IsRedshirt = bool(in.Bool()) + case "IsRedshirting": + out.IsRedshirting = bool(in.Bool()) + case "HasGraduated": + out.HasGraduated = bool(in.Bool()) + case "TransferStatus": + out.TransferStatus = int(in.Int()) + case "TransferLikeliness": + out.TransferLikeliness = string(in.String()) + case "Stats": + if in.IsNull() { + in.Skip() + out.Stats = nil + } else { + in.Delim('[') + if out.Stats == nil { + if !in.IsDelim(']') { + out.Stats = make([]structs.CollegePlayerStats, 0, 0) + } else { + out.Stats = []structs.CollegePlayerStats{} + } + } else { + out.Stats = (out.Stats)[:0] + } + for !in.IsDelim(']') { + var v15 structs.CollegePlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in, &v15) + out.Stats = append(out.Stats, v15) + in.WantComma() + } + in.Delim(']') + } + case "SeasonStats": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in, &out.SeasonStats) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "WillDeclare": + out.WillDeclare = bool(in.Bool()) + case "LegacyID": + out.LegacyID = uint(in.Uint()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Age": + out.Age = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "Overall": + out.Overall = int(in.Int()) + case "Stamina": + out.Stamina = int(in.Int()) + case "Injury": + out.Injury = int(in.Int()) + case "FootballIQ": + out.FootballIQ = int(in.Int()) + case "Speed": + out.Speed = int(in.Int()) + case "Carrying": + out.Carrying = int(in.Int()) + case "Agility": + out.Agility = int(in.Int()) + case "Catching": + out.Catching = int(in.Int()) + case "RouteRunning": + out.RouteRunning = int(in.Int()) + case "ZoneCoverage": + out.ZoneCoverage = int(in.Int()) + case "ManCoverage": + out.ManCoverage = int(in.Int()) + case "Strength": + out.Strength = int(in.Int()) + case "Tackle": + out.Tackle = int(in.Int()) + case "PassBlock": + out.PassBlock = int(in.Int()) + case "RunBlock": + out.RunBlock = int(in.Int()) + case "PassRush": + out.PassRush = int(in.Int()) + case "RunDefense": + out.RunDefense = int(in.Int()) + case "ThrowPower": + out.ThrowPower = int(in.Int()) + case "ThrowAccuracy": + out.ThrowAccuracy = int(in.Int()) + case "KickAccuracy": + out.KickAccuracy = int(in.Int()) + case "KickPower": + out.KickPower = int(in.Int()) + case "PuntAccuracy": + out.PuntAccuracy = int(in.Int()) + case "PuntPower": + out.PuntPower = int(in.Int()) + case "Progression": + out.Progression = int(in.Int()) + case "Discipline": + out.Discipline = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out *jwriter.Writer, in structs.CollegePlayer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"IsRedshirt\":" + out.RawString(prefix) + out.Bool(bool(in.IsRedshirt)) + } + { + const prefix string = ",\"IsRedshirting\":" + out.RawString(prefix) + out.Bool(bool(in.IsRedshirting)) + } + { + const prefix string = ",\"HasGraduated\":" + out.RawString(prefix) + out.Bool(bool(in.HasGraduated)) + } + { + const prefix string = ",\"TransferStatus\":" + out.RawString(prefix) + out.Int(int(in.TransferStatus)) + } + { + const prefix string = ",\"TransferLikeliness\":" + out.RawString(prefix) + out.String(string(in.TransferLikeliness)) + } + { + const prefix string = ",\"Stats\":" + out.RawString(prefix) + if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v16, v17 := range in.Stats { + if v16 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out, v17) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"SeasonStats\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out, in.SeasonStats) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"WillDeclare\":" + out.RawString(prefix) + out.Bool(bool(in.WillDeclare)) + } + { + const prefix string = ",\"LegacyID\":" + out.RawString(prefix) + out.Uint(uint(in.LegacyID)) + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"Overall\":" + out.RawString(prefix) + out.Int(int(in.Overall)) + } + { + const prefix string = ",\"Stamina\":" + out.RawString(prefix) + out.Int(int(in.Stamina)) + } + { + const prefix string = ",\"Injury\":" + out.RawString(prefix) + out.Int(int(in.Injury)) + } + { + const prefix string = ",\"FootballIQ\":" + out.RawString(prefix) + out.Int(int(in.FootballIQ)) + } + { + const prefix string = ",\"Speed\":" + out.RawString(prefix) + out.Int(int(in.Speed)) + } + { + const prefix string = ",\"Carrying\":" + out.RawString(prefix) + out.Int(int(in.Carrying)) + } + { + const prefix string = ",\"Agility\":" + out.RawString(prefix) + out.Int(int(in.Agility)) + } + { + const prefix string = ",\"Catching\":" + out.RawString(prefix) + out.Int(int(in.Catching)) + } + { + const prefix string = ",\"RouteRunning\":" + out.RawString(prefix) + out.Int(int(in.RouteRunning)) + } + { + const prefix string = ",\"ZoneCoverage\":" + out.RawString(prefix) + out.Int(int(in.ZoneCoverage)) + } + { + const prefix string = ",\"ManCoverage\":" + out.RawString(prefix) + out.Int(int(in.ManCoverage)) + } + { + const prefix string = ",\"Strength\":" + out.RawString(prefix) + out.Int(int(in.Strength)) + } + { + const prefix string = ",\"Tackle\":" + out.RawString(prefix) + out.Int(int(in.Tackle)) + } + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int(int(in.PassBlock)) + } + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int(int(in.RunBlock)) + } + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int(int(in.PassRush)) + } + { + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int(int(in.RunDefense)) + } + { + const prefix string = ",\"ThrowPower\":" + out.RawString(prefix) + out.Int(int(in.ThrowPower)) + } + { + const prefix string = ",\"ThrowAccuracy\":" + out.RawString(prefix) + out.Int(int(in.ThrowAccuracy)) + } + { + const prefix string = ",\"KickAccuracy\":" + out.RawString(prefix) + out.Int(int(in.KickAccuracy)) + } + { + const prefix string = ",\"KickPower\":" + out.RawString(prefix) + out.Int(int(in.KickPower)) + } + { + const prefix string = ",\"PuntAccuracy\":" + out.RawString(prefix) + out.Int(int(in.PuntAccuracy)) + } + { + const prefix string = ",\"PuntPower\":" + out.RawString(prefix) + out.Int(int(in.PuntPower)) + } + { + const prefix string = ",\"Progression\":" + out.RawString(prefix) + out.Int(int(in.Progression)) + } + { + const prefix string = ",\"Discipline\":" + out.RawString(prefix) + out.Int(int(in.Discipline)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"FreeAgency\":" + out.RawString(prefix) + out.String(string(in.FreeAgency)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"IsInjured\":" + out.RawString(prefix) + out.Bool(bool(in.IsInjured)) + } + { + const prefix string = ",\"InjuryName\":" + out.RawString(prefix) + out.String(string(in.InjuryName)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryReserve\":" + out.RawString(prefix) + out.Bool(bool(in.InjuryReserve)) + } + { + const prefix string = ",\"PrimeAge\":" + out.RawString(prefix) + out.Uint(uint(in.PrimeAge)) + } + { + const prefix string = ",\"Clutch\":" + out.RawString(prefix) + out.Int(int(in.Clutch)) + } + { + const prefix string = ",\"Shotgun\":" + out.RawString(prefix) + out.Int(int(in.Shotgun)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"ArchetypeTwo\":" + out.RawString(prefix) + out.String(string(in.ArchetypeTwo)) + } + { + const prefix string = ",\"RelativeID\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeID)) + } + { + const prefix string = ",\"RelativeType\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeType)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in *jlexer.Lexer, out *structs.CollegePlayerStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegePlayerID": + out.CollegePlayerID = int(in.Int()) + case "GameID": + out.GameID = int(in.Int()) + case "WeekID": + out.WeekID = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "Year": + out.Year = int(in.Int()) + case "IsRedshirt": + out.IsRedshirt = bool(in.Bool()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassAttempts": + out.PassAttempts = int(in.Int()) + case "PassCompletions": + out.PassCompletions = int(in.Int()) + case "PassingTDs": + out.PassingTDs = int(in.Int()) + case "Interceptions": + out.Interceptions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "Sacks": + out.Sacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingTDs": + out.RushingTDs = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "Targets": + out.Targets = int(in.Int()) + case "Catches": + out.Catches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "ReceivingTDs": + out.ReceivingTDs = int(in.Int()) + case "LongestReception": + out.LongestReception = int(in.Int()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "RecoveredFumbles": + out.RecoveredFumbles = int(in.Int()) + case "PassDeflections": + out.PassDeflections = int(in.Int()) + case "InterceptionsCaught": + out.InterceptionsCaught = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "FGMade": + out.FGMade = int(in.Int()) + case "FGAttempts": + out.FGAttempts = int(in.Int()) + case "LongestFG": + out.LongestFG = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "GrossPuntDistance": + out.GrossPuntDistance = int(in.Int()) + case "NetPuntDistance": + out.NetPuntDistance = int(in.Int()) + case "PuntTouchbacks": + out.PuntTouchbacks = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "KickReturns": + out.KickReturns = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "PuntReturns": + out.PuntReturns = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int(in.Int()) + case "FGBlocked": + out.FGBlocked = int(in.Int()) + case "Snaps": + out.Snaps = int(in.Int()) + case "Pancakes": + out.Pancakes = int(in.Int()) + case "SacksAllowed": + out.SacksAllowed = int(in.Int()) + case "PlayedGame": + out.PlayedGame = int(in.Int()) + case "StartedGame": + out.StartedGame = int(in.Int()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out *jwriter.Writer, in structs.CollegePlayerStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegePlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.CollegePlayerID)) + } + { + const prefix string = ",\"GameID\":" + out.RawString(prefix) + out.Int(int(in.GameID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"OpposingTeam\":" + out.RawString(prefix) + out.String(string(in.OpposingTeam)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"IsRedshirt\":" + out.RawString(prefix) + out.Bool(bool(in.IsRedshirt)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int(int(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int(int(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int(int(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int(int(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int(int(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int(int(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int(int(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"RecoveredFumbles\":" + out.RawString(prefix) + out.Int(int(in.RecoveredFumbles)) + } + { + const prefix string = ",\"PassDeflections\":" + out.RawString(prefix) + out.Int(int(in.PassDeflections)) + } + { + const prefix string = ",\"InterceptionsCaught\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCaught)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"FGMade\":" + out.RawString(prefix) + out.Int(int(in.FGMade)) + } + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int(int(in.FGAttempts)) + } + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int(int(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int(int(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int(int(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int(int(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int(int(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int(int(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int(int(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int(int(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int(int(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int(int(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs2(in *jlexer.Lexer, out *structs.FlexComparisonModel) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamOneID": + out.TeamOneID = uint(in.Uint()) + case "TeamOne": + out.TeamOne = string(in.String()) + case "TeamOneWins": + out.TeamOneWins = uint(in.Uint()) + case "TeamOneLosses": + out.TeamOneLosses = uint(in.Uint()) + case "TeamOneStreak": + out.TeamOneStreak = uint(in.Uint()) + case "TeamOneMSeason": + out.TeamOneMSeason = int(in.Int()) + case "TeamOneMScore": + out.TeamOneMScore = string(in.String()) + case "TeamTwoID": + out.TeamTwoID = uint(in.Uint()) + case "TeamTwo": + out.TeamTwo = string(in.String()) + case "TeamTwoWins": + out.TeamTwoWins = uint(in.Uint()) + case "TeamTwoLosses": + out.TeamTwoLosses = uint(in.Uint()) + case "TeamTwoStreak": + out.TeamTwoStreak = uint(in.Uint()) + case "TeamTwoMSeason": + out.TeamTwoMSeason = int(in.Int()) + case "TeamTwoMScore": + out.TeamTwoMScore = string(in.String()) + case "CurrentStreak": + out.CurrentStreak = uint(in.Uint()) + case "LatestWin": + out.LatestWin = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs2(out *jwriter.Writer, in structs.FlexComparisonModel) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamOneID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamOneID)) + } + { + const prefix string = ",\"TeamOne\":" + out.RawString(prefix) + out.String(string(in.TeamOne)) + } + { + const prefix string = ",\"TeamOneWins\":" + out.RawString(prefix) + out.Uint(uint(in.TeamOneWins)) + } + { + const prefix string = ",\"TeamOneLosses\":" + out.RawString(prefix) + out.Uint(uint(in.TeamOneLosses)) + } + { + const prefix string = ",\"TeamOneStreak\":" + out.RawString(prefix) + out.Uint(uint(in.TeamOneStreak)) + } + { + const prefix string = ",\"TeamOneMSeason\":" + out.RawString(prefix) + out.Int(int(in.TeamOneMSeason)) + } + { + const prefix string = ",\"TeamOneMScore\":" + out.RawString(prefix) + out.String(string(in.TeamOneMScore)) + } + { + const prefix string = ",\"TeamTwoID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamTwoID)) + } + { + const prefix string = ",\"TeamTwo\":" + out.RawString(prefix) + out.String(string(in.TeamTwo)) + } + { + const prefix string = ",\"TeamTwoWins\":" + out.RawString(prefix) + out.Uint(uint(in.TeamTwoWins)) + } + { + const prefix string = ",\"TeamTwoLosses\":" + out.RawString(prefix) + out.Uint(uint(in.TeamTwoLosses)) + } + { + const prefix string = ",\"TeamTwoStreak\":" + out.RawString(prefix) + out.Uint(uint(in.TeamTwoStreak)) + } + { + const prefix string = ",\"TeamTwoMSeason\":" + out.RawString(prefix) + out.Int(int(in.TeamTwoMSeason)) + } + { + const prefix string = ",\"TeamTwoMScore\":" + out.RawString(prefix) + out.String(string(in.TeamTwoMScore)) + } + { + const prefix string = ",\"CurrentStreak\":" + out.RawString(prefix) + out.Uint(uint(in.CurrentStreak)) + } + { + const prefix string = ",\"LatestWin\":" + out.RawString(prefix) + out.String(string(in.LatestWin)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in *jlexer.Lexer, out *structs.CollegeStandings) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "TeamName": + out.TeamName = string(in.String()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "Season": + out.Season = int(in.Int()) + case "LeagueID": + out.LeagueID = uint(in.Uint()) + case "LeagueName": + out.LeagueName = string(in.String()) + case "ConferenceID": + out.ConferenceID = int(in.Int()) + case "ConferenceName": + out.ConferenceName = string(in.String()) + case "DivisionID": + out.DivisionID = int(in.Int()) + case "PostSeasonStatus": + out.PostSeasonStatus = string(in.String()) + case "IsFBS": + out.IsFBS = bool(in.Bool()) + case "Rank": + out.Rank = uint(in.Uint()) + case "TotalWins": + out.TotalWins = int(in.Int()) + case "TotalLosses": + out.TotalLosses = int(in.Int()) + case "ConferenceWins": + out.ConferenceWins = int(in.Int()) + case "ConferenceLosses": + out.ConferenceLosses = int(in.Int()) + case "RankedWins": + out.RankedWins = int(in.Int()) + case "RankedLosses": + out.RankedLosses = int(in.Int()) + case "PointsFor": + out.PointsFor = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "Streak": + out.Streak = int(in.Int()) + case "HomeWins": + out.HomeWins = int(in.Int()) + case "AwayWins": + out.AwayWins = int(in.Int()) + case "Coach": + out.Coach = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "TotalWinPercentage": + out.TotalWinPercentage = float32(in.Float32()) + case "ConfWinPercentage": + out.ConfWinPercentage = float32(in.Float32()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out *jwriter.Writer, in structs.CollegeStandings) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"Season\":" + out.RawString(prefix) + out.Int(int(in.Season)) + } + { + const prefix string = ",\"LeagueID\":" + out.RawString(prefix) + out.Uint(uint(in.LeagueID)) + } + { + const prefix string = ",\"LeagueName\":" + out.RawString(prefix) + out.String(string(in.LeagueName)) + } + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix) + out.Int(int(in.ConferenceID)) + } + { + const prefix string = ",\"ConferenceName\":" + out.RawString(prefix) + out.String(string(in.ConferenceName)) + } + { + const prefix string = ",\"DivisionID\":" + out.RawString(prefix) + out.Int(int(in.DivisionID)) + } + { + const prefix string = ",\"PostSeasonStatus\":" + out.RawString(prefix) + out.String(string(in.PostSeasonStatus)) + } + { + const prefix string = ",\"IsFBS\":" + out.RawString(prefix) + out.Bool(bool(in.IsFBS)) + } + { + const prefix string = ",\"Rank\":" + out.RawString(prefix) + out.Uint(uint(in.Rank)) + } + { + const prefix string = ",\"TotalWins\":" + out.RawString(prefix) + out.Int(int(in.TotalWins)) + } + { + const prefix string = ",\"TotalLosses\":" + out.RawString(prefix) + out.Int(int(in.TotalLosses)) + } + { + const prefix string = ",\"ConferenceWins\":" + out.RawString(prefix) + out.Int(int(in.ConferenceWins)) + } + { + const prefix string = ",\"ConferenceLosses\":" + out.RawString(prefix) + out.Int(int(in.ConferenceLosses)) + } + { + const prefix string = ",\"RankedWins\":" + out.RawString(prefix) + out.Int(int(in.RankedWins)) + } + { + const prefix string = ",\"RankedLosses\":" + out.RawString(prefix) + out.Int(int(in.RankedLosses)) + } + { + const prefix string = ",\"PointsFor\":" + out.RawString(prefix) + out.Int(int(in.PointsFor)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"Streak\":" + out.RawString(prefix) + out.Int(int(in.Streak)) + } + { + const prefix string = ",\"HomeWins\":" + out.RawString(prefix) + out.Int(int(in.HomeWins)) + } + { + const prefix string = ",\"AwayWins\":" + out.RawString(prefix) + out.Int(int(in.AwayWins)) + } + { + const prefix string = ",\"Coach\":" + out.RawString(prefix) + out.String(string(in.Coach)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"TotalWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.TotalWinPercentage)) + } + { + const prefix string = ",\"ConfWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.ConfWinPercentage)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in *jlexer.Lexer, out *structs.CollegePlayerSeasonStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegePlayerID": + out.CollegePlayerID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = uint(in.Uint()) + case "IsRedshirt": + out.IsRedshirt = bool(in.Bool()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "RushingAvg": + out.RushingAvg = float64(in.Float64()) + case "PassingAvg": + out.PassingAvg = float64(in.Float64()) + case "ReceivingAvg": + out.ReceivingAvg = float64(in.Float64()) + case "Completion": + out.Completion = float64(in.Float64()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassAttempts": + out.PassAttempts = int(in.Int()) + case "PassCompletions": + out.PassCompletions = int(in.Int()) + case "PassingTDs": + out.PassingTDs = int(in.Int()) + case "Interceptions": + out.Interceptions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "Sacks": + out.Sacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingTDs": + out.RushingTDs = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "Targets": + out.Targets = int(in.Int()) + case "Catches": + out.Catches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "ReceivingTDs": + out.ReceivingTDs = int(in.Int()) + case "LongestReception": + out.LongestReception = int(in.Int()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "RecoveredFumbles": + out.RecoveredFumbles = int(in.Int()) + case "PassDeflections": + out.PassDeflections = int(in.Int()) + case "InterceptionsCaught": + out.InterceptionsCaught = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "FGMade": + out.FGMade = int(in.Int()) + case "FGAttempts": + out.FGAttempts = int(in.Int()) + case "LongestFG": + out.LongestFG = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "GrossPuntDistance": + out.GrossPuntDistance = int(in.Int()) + case "NetPuntDistance": + out.NetPuntDistance = int(in.Int()) + case "PuntTouchbacks": + out.PuntTouchbacks = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "KickReturns": + out.KickReturns = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "PuntReturns": + out.PuntReturns = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int(in.Int()) + case "FGBlocked": + out.FGBlocked = int(in.Int()) + case "Snaps": + out.Snaps = int(in.Int()) + case "Pancakes": + out.Pancakes = int(in.Int()) + case "SacksAllowed": + out.SacksAllowed = int(in.Int()) + case "PlayedGame": + out.PlayedGame = int(in.Int()) + case "StartedGame": + out.StartedGame = int(in.Int()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out *jwriter.Writer, in structs.CollegePlayerSeasonStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegePlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.CollegePlayerID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Uint(uint(in.Year)) + } + { + const prefix string = ",\"IsRedshirt\":" + out.RawString(prefix) + out.Bool(bool(in.IsRedshirt)) + } + { + const prefix string = ",\"GamesPlayed\":" + out.RawString(prefix) + out.Int(int(in.GamesPlayed)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"RushingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.RushingAvg)) + } + { + const prefix string = ",\"PassingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.PassingAvg)) + } + { + const prefix string = ",\"ReceivingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.ReceivingAvg)) + } + { + const prefix string = ",\"Completion\":" + out.RawString(prefix) + out.Float64(float64(in.Completion)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int(int(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int(int(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int(int(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int(int(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int(int(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int(int(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int(int(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"RecoveredFumbles\":" + out.RawString(prefix) + out.Int(int(in.RecoveredFumbles)) + } + { + const prefix string = ",\"PassDeflections\":" + out.RawString(prefix) + out.Int(int(in.PassDeflections)) + } + { + const prefix string = ",\"InterceptionsCaught\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCaught)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"FGMade\":" + out.RawString(prefix) + out.Int(int(in.FGMade)) + } + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int(int(in.FGAttempts)) + } + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int(int(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int(int(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int(int(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int(int(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int(int(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int(int(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int(int(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int(int(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int(int(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int(int(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(in *jlexer.Lexer, out *BootstrapDataTeams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "AllCollegeTeams": + if in.IsNull() { + in.Skip() + out.AllCollegeTeams = nil + } else { + in.Delim('[') + if out.AllCollegeTeams == nil { + if !in.IsDelim(']') { + out.AllCollegeTeams = make([]structs.CollegeTeam, 0, 0) + } else { + out.AllCollegeTeams = []structs.CollegeTeam{} + } + } else { + out.AllCollegeTeams = (out.AllCollegeTeams)[:0] + } + for !in.IsDelim(']') { + var v18 structs.CollegeTeam + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v18) + out.AllCollegeTeams = append(out.AllCollegeTeams, v18) + in.WantComma() + } + in.Delim(']') + } + case "AllProTeams": + if in.IsNull() { + in.Skip() + out.AllProTeams = nil + } else { + in.Delim('[') + if out.AllProTeams == nil { + if !in.IsDelim(']') { + out.AllProTeams = make([]structs.NFLTeam, 0, 0) + } else { + out.AllProTeams = []structs.NFLTeam{} + } + } else { + out.AllProTeams = (out.AllProTeams)[:0] + } + for !in.IsDelim(']') { + var v19 structs.NFLTeam + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, &v19) + out.AllProTeams = append(out.AllProTeams, v19) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(out *jwriter.Writer, in BootstrapDataTeams) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"AllCollegeTeams\":" + out.RawString(prefix[1:]) + if in.AllCollegeTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v20, v21 := range in.AllCollegeTeams { + if v20 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v21) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"AllProTeams\":" + out.RawString(prefix) + if in.AllProTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v22, v23 := range in.AllProTeams { + if v22 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, v23) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataTeams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataTeams) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataTeams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataTeams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in *jlexer.Lexer, out *structs.NFLTeam) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ConferenceID": + out.ConferenceID = uint(in.Uint()) + case "Conference": + out.Conference = string(in.String()) + case "DivisionID": + out.DivisionID = uint(in.Uint()) + case "Division": + out.Division = string(in.String()) + case "NFLOwnerID": + out.NFLOwnerID = uint(in.Uint()) + case "NFLOwnerName": + out.NFLOwnerName = string(in.String()) + case "NFLCoachID": + out.NFLCoachID = uint(in.Uint()) + case "NFLCoachName": + out.NFLCoachName = string(in.String()) + case "NFLGMID": + out.NFLGMID = uint(in.Uint()) + case "NFLGMName": + out.NFLGMName = string(in.String()) + case "NFLAssistantID": + out.NFLAssistantID = uint(in.Uint()) + case "NFLAssistantName": + out.NFLAssistantName = string(in.String()) + case "WaiverOrder": + out.WaiverOrder = uint(in.Uint()) + case "UsedTagThisSeason": + out.UsedTagThisSeason = bool(in.Bool()) + case "Capsheet": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &out.Capsheet) + case "Contracts": + if in.IsNull() { + in.Skip() + out.Contracts = nil + } else { + in.Delim('[') + if out.Contracts == nil { + if !in.IsDelim(']') { + out.Contracts = make([]structs.NFLContract, 0, 0) + } else { + out.Contracts = []structs.NFLContract{} + } + } else { + out.Contracts = (out.Contracts)[:0] + } + for !in.IsDelim(']') { + var v24 structs.NFLContract + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &v24) + out.Contracts = append(out.Contracts, v24) + in.WantComma() + } + in.Delim(']') + } + case "DraftPicks": + if in.IsNull() { + in.Skip() + out.DraftPicks = nil + } else { + in.Delim('[') + if out.DraftPicks == nil { + if !in.IsDelim(']') { + out.DraftPicks = make([]structs.NFLDraftPick, 0, 0) + } else { + out.DraftPicks = []structs.NFLDraftPick{} + } + } else { + out.DraftPicks = (out.DraftPicks)[:0] + } + for !in.IsDelim(']') { + var v25 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v25) + out.DraftPicks = append(out.DraftPicks, v25) + in.WantComma() + } + in.Delim(']') + } + case "TeamStats": + if in.IsNull() { + in.Skip() + out.TeamStats = nil + } else { + in.Delim('[') + if out.TeamStats == nil { + if !in.IsDelim(']') { + out.TeamStats = make([]structs.NFLTeamStats, 0, 0) + } else { + out.TeamStats = []structs.NFLTeamStats{} + } + } else { + out.TeamStats = (out.TeamStats)[:0] + } + for !in.IsDelim(']') { + var v26 structs.NFLTeamStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v26) + out.TeamStats = append(out.TeamStats, v26) + in.WantComma() + } + in.Delim(']') + } + case "TeamSeasonStats": + if in.IsNull() { + in.Skip() + out.TeamSeasonStats = nil + } else { + in.Delim('[') + if out.TeamSeasonStats == nil { + if !in.IsDelim(']') { + out.TeamSeasonStats = make([]structs.NFLTeamSeasonStats, 0, 0) + } else { + out.TeamSeasonStats = []structs.NFLTeamSeasonStats{} + } + } else { + out.TeamSeasonStats = (out.TeamSeasonStats)[:0] + } + for !in.IsDelim(']') { + var v27 structs.NFLTeamSeasonStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in, &v27) + out.TeamSeasonStats = append(out.TeamSeasonStats, v27) + in.WantComma() + } + in.Delim(']') + } + case "TeamDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &out.TeamDepthChart) + case "TeamGameplan": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &out.TeamGameplan) + case "Standings": + if in.IsNull() { + in.Skip() + out.Standings = nil + } else { + in.Delim('[') + if out.Standings == nil { + if !in.IsDelim(']') { + out.Standings = make([]structs.NFLStandings, 0, 0) + } else { + out.Standings = []structs.NFLStandings{} + } + } else { + out.Standings = (out.Standings)[:0] + } + for !in.IsDelim(']') { + var v28 structs.NFLStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v28) + out.Standings = append(out.Standings, v28) + in.WantComma() + } + in.Delim(']') + } + case "TeamName": + out.TeamName = string(in.String()) + case "Mascot": + out.Mascot = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Coach": + out.Coach = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Country": + out.Country = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "StadiumCapacity": + out.StadiumCapacity = int(in.Int()) + case "RecordAttendance": + out.RecordAttendance = int(in.Int()) + case "Enrollment": + out.Enrollment = int(in.Int()) + case "FirstPlayed": + out.FirstPlayed = int(in.Int()) + case "ColorOne": + out.ColorOne = string(in.String()) + case "ColorTwo": + out.ColorTwo = string(in.String()) + case "ColorThree": + out.ColorThree = string(in.String()) + case "DiscordID": + out.DiscordID = string(in.String()) + case "OverallGrade": + out.OverallGrade = string(in.String()) + case "OffenseGrade": + out.OffenseGrade = string(in.String()) + case "DefenseGrade": + out.DefenseGrade = string(in.String()) + case "SpecialTeamsGrade": + out.SpecialTeamsGrade = string(in.String()) + case "PenaltyMarks": + out.PenaltyMarks = uint8(in.Uint8()) + case "JerseyType": + out.JerseyType = uint8(in.Uint8()) + case "LastLogin": + if data := in.Raw(); in.Ok() { + in.AddError((out.LastLogin).UnmarshalJSON(data)) + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out *jwriter.Writer, in structs.NFLTeam) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ConferenceID)) + } + { + const prefix string = ",\"Conference\":" + out.RawString(prefix) + out.String(string(in.Conference)) + } + { + const prefix string = ",\"DivisionID\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionID)) + } + { + const prefix string = ",\"Division\":" + out.RawString(prefix) + out.String(string(in.Division)) + } + { + const prefix string = ",\"NFLOwnerID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLOwnerID)) + } + { + const prefix string = ",\"NFLOwnerName\":" + out.RawString(prefix) + out.String(string(in.NFLOwnerName)) + } + { + const prefix string = ",\"NFLCoachID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLCoachID)) + } + { + const prefix string = ",\"NFLCoachName\":" + out.RawString(prefix) + out.String(string(in.NFLCoachName)) + } + { + const prefix string = ",\"NFLGMID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLGMID)) + } + { + const prefix string = ",\"NFLGMName\":" + out.RawString(prefix) + out.String(string(in.NFLGMName)) + } + { + const prefix string = ",\"NFLAssistantID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLAssistantID)) + } + { + const prefix string = ",\"NFLAssistantName\":" + out.RawString(prefix) + out.String(string(in.NFLAssistantName)) + } + { + const prefix string = ",\"WaiverOrder\":" + out.RawString(prefix) + out.Uint(uint(in.WaiverOrder)) + } + { + const prefix string = ",\"UsedTagThisSeason\":" + out.RawString(prefix) + out.Bool(bool(in.UsedTagThisSeason)) + } + { + const prefix string = ",\"Capsheet\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, in.Capsheet) + } + { + const prefix string = ",\"Contracts\":" + out.RawString(prefix) + if in.Contracts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v29, v30 := range in.Contracts { + if v29 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v30) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"DraftPicks\":" + out.RawString(prefix) + if in.DraftPicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v31, v32 := range in.DraftPicks { + if v31 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v32) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamStats\":" + out.RawString(prefix) + if in.TeamStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v33, v34 := range in.TeamStats { + if v33 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v34) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamSeasonStats\":" + out.RawString(prefix) + if in.TeamSeasonStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v35, v36 := range in.TeamSeasonStats { + if v35 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out, v36) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, in.TeamDepthChart) + } + { + const prefix string = ",\"TeamGameplan\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, in.TeamGameplan) + } + { + const prefix string = ",\"Standings\":" + out.RawString(prefix) + if in.Standings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v37, v38 := range in.Standings { + if v37 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v38) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"Mascot\":" + out.RawString(prefix) + out.String(string(in.Mascot)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Coach\":" + out.RawString(prefix) + out.String(string(in.Coach)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Country\":" + out.RawString(prefix) + out.String(string(in.Country)) + } + { + const prefix string = ",\"StadiumID\":" + out.RawString(prefix) + out.Uint(uint(in.StadiumID)) + } + { + const prefix string = ",\"Stadium\":" + out.RawString(prefix) + out.String(string(in.Stadium)) + } + { + const prefix string = ",\"StadiumCapacity\":" + out.RawString(prefix) + out.Int(int(in.StadiumCapacity)) + } + { + const prefix string = ",\"RecordAttendance\":" + out.RawString(prefix) + out.Int(int(in.RecordAttendance)) + } + { + const prefix string = ",\"Enrollment\":" + out.RawString(prefix) + out.Int(int(in.Enrollment)) + } + { + const prefix string = ",\"FirstPlayed\":" + out.RawString(prefix) + out.Int(int(in.FirstPlayed)) + } + { + const prefix string = ",\"ColorOne\":" + out.RawString(prefix) + out.String(string(in.ColorOne)) + } + { + const prefix string = ",\"ColorTwo\":" + out.RawString(prefix) + out.String(string(in.ColorTwo)) + } + { + const prefix string = ",\"ColorThree\":" + out.RawString(prefix) + out.String(string(in.ColorThree)) + } + { + const prefix string = ",\"DiscordID\":" + out.RawString(prefix) + out.String(string(in.DiscordID)) + } + { + const prefix string = ",\"OverallGrade\":" + out.RawString(prefix) + out.String(string(in.OverallGrade)) + } + { + const prefix string = ",\"OffenseGrade\":" + out.RawString(prefix) + out.String(string(in.OffenseGrade)) + } + { + const prefix string = ",\"DefenseGrade\":" + out.RawString(prefix) + out.String(string(in.DefenseGrade)) + } + { + const prefix string = ",\"SpecialTeamsGrade\":" + out.RawString(prefix) + out.String(string(in.SpecialTeamsGrade)) + } + { + const prefix string = ",\"PenaltyMarks\":" + out.RawString(prefix) + out.Uint8(uint8(in.PenaltyMarks)) + } + { + const prefix string = ",\"JerseyType\":" + out.RawString(prefix) + out.Uint8(uint8(in.JerseyType)) + } + { + const prefix string = ",\"LastLogin\":" + out.RawString(prefix) + out.Raw((in.LastLogin).MarshalJSON()) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in *jlexer.Lexer, out *structs.NFLStandings) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "TeamName": + out.TeamName = string(in.String()) + case "Mascot": + out.Mascot = string(in.String()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Season": + out.Season = uint(in.Uint()) + case "LeagueID": + out.LeagueID = uint(in.Uint()) + case "LeagueName": + out.LeagueName = string(in.String()) + case "ConferenceID": + out.ConferenceID = uint(in.Uint()) + case "ConferenceName": + out.ConferenceName = string(in.String()) + case "TotalTies": + out.TotalTies = uint(in.Uint()) + case "ConferenceTies": + out.ConferenceTies = uint(in.Uint()) + case "DivisionID": + out.DivisionID = uint(in.Uint()) + case "DivisionName": + out.DivisionName = string(in.String()) + case "DivisionWins": + out.DivisionWins = uint(in.Uint()) + case "DivisionLosses": + out.DivisionLosses = uint(in.Uint()) + case "DivisionTies": + out.DivisionTies = uint(in.Uint()) + case "PostSeasonStatus": + out.PostSeasonStatus = string(in.String()) + case "TotalWins": + out.TotalWins = int(in.Int()) + case "TotalLosses": + out.TotalLosses = int(in.Int()) + case "ConferenceWins": + out.ConferenceWins = int(in.Int()) + case "ConferenceLosses": + out.ConferenceLosses = int(in.Int()) + case "RankedWins": + out.RankedWins = int(in.Int()) + case "RankedLosses": + out.RankedLosses = int(in.Int()) + case "PointsFor": + out.PointsFor = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "Streak": + out.Streak = int(in.Int()) + case "HomeWins": + out.HomeWins = int(in.Int()) + case "AwayWins": + out.AwayWins = int(in.Int()) + case "Coach": + out.Coach = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "TotalWinPercentage": + out.TotalWinPercentage = float32(in.Float32()) + case "ConfWinPercentage": + out.ConfWinPercentage = float32(in.Float32()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out *jwriter.Writer, in structs.NFLStandings) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"Mascot\":" + out.RawString(prefix) + out.String(string(in.Mascot)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Season\":" + out.RawString(prefix) + out.Uint(uint(in.Season)) + } + { + const prefix string = ",\"LeagueID\":" + out.RawString(prefix) + out.Uint(uint(in.LeagueID)) + } + { + const prefix string = ",\"LeagueName\":" + out.RawString(prefix) + out.String(string(in.LeagueName)) + } + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix) + out.Uint(uint(in.ConferenceID)) + } + { + const prefix string = ",\"ConferenceName\":" + out.RawString(prefix) + out.String(string(in.ConferenceName)) + } + { + const prefix string = ",\"TotalTies\":" + out.RawString(prefix) + out.Uint(uint(in.TotalTies)) + } + { + const prefix string = ",\"ConferenceTies\":" + out.RawString(prefix) + out.Uint(uint(in.ConferenceTies)) + } + { + const prefix string = ",\"DivisionID\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionID)) + } + { + const prefix string = ",\"DivisionName\":" + out.RawString(prefix) + out.String(string(in.DivisionName)) + } + { + const prefix string = ",\"DivisionWins\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionWins)) + } + { + const prefix string = ",\"DivisionLosses\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionLosses)) + } + { + const prefix string = ",\"DivisionTies\":" + out.RawString(prefix) + out.Uint(uint(in.DivisionTies)) + } + { + const prefix string = ",\"PostSeasonStatus\":" + out.RawString(prefix) + out.String(string(in.PostSeasonStatus)) + } + { + const prefix string = ",\"TotalWins\":" + out.RawString(prefix) + out.Int(int(in.TotalWins)) + } + { + const prefix string = ",\"TotalLosses\":" + out.RawString(prefix) + out.Int(int(in.TotalLosses)) + } + { + const prefix string = ",\"ConferenceWins\":" + out.RawString(prefix) + out.Int(int(in.ConferenceWins)) + } + { + const prefix string = ",\"ConferenceLosses\":" + out.RawString(prefix) + out.Int(int(in.ConferenceLosses)) + } + { + const prefix string = ",\"RankedWins\":" + out.RawString(prefix) + out.Int(int(in.RankedWins)) + } + { + const prefix string = ",\"RankedLosses\":" + out.RawString(prefix) + out.Int(int(in.RankedLosses)) + } + { + const prefix string = ",\"PointsFor\":" + out.RawString(prefix) + out.Int(int(in.PointsFor)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"Streak\":" + out.RawString(prefix) + out.Int(int(in.Streak)) + } + { + const prefix string = ",\"HomeWins\":" + out.RawString(prefix) + out.Int(int(in.HomeWins)) + } + { + const prefix string = ",\"AwayWins\":" + out.RawString(prefix) + out.Int(int(in.AwayWins)) + } + { + const prefix string = ",\"Coach\":" + out.RawString(prefix) + out.String(string(in.Coach)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"TotalWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.TotalWinPercentage)) + } + { + const prefix string = ",\"ConfWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.ConfWinPercentage)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in *jlexer.Lexer, out *structs.NFLGameplan) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "OffRunToPassRatio": + out.OffRunToPassRatio = int(in.Int()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "BlitzSafeties": + out.BlitzSafeties = bool(in.Bool()) + case "BlitzCorners": + out.BlitzCorners = bool(in.Bool()) + case "LinebackerCoverage": + out.LinebackerCoverage = string(in.String()) + case "CornersCoverage": + out.CornersCoverage = string(in.String()) + case "SafetiesCoverage": + out.SafetiesCoverage = string(in.String()) + case "DiveFocus": + out.DiveFocus = int(in.Int()) + case "PitchFocus": + out.PitchFocus = int(in.Int()) + case "PrimaryHB": + out.PrimaryHB = int(in.Int()) + case "MaximumFGDistance": + out.MaximumFGDistance = int(in.Int()) + case "GoFor4AndShort": + out.GoFor4AndShort = int(in.Int()) + case "GoFor4AndLong": + out.GoFor4AndLong = int(in.Int()) + case "HasSchemePenalty": + out.HasSchemePenalty = bool(in.Bool()) + case "OffenseSchemePenalty": + out.OffenseSchemePenalty = uint(in.Uint()) + case "DefenseSchemePenalty": + out.DefenseSchemePenalty = uint(in.Uint()) + case "DefaultOffense": + out.DefaultOffense = bool(in.Bool()) + case "DefaultDefense": + out.DefaultDefense = bool(in.Bool()) + case "PreviousWeekBye": + out.PreviousWeekBye = bool(in.Bool()) + case "FocusPlays": + out.FocusPlays = string(in.String()) + case "DoubleTeam": + out.DoubleTeam = int(in.Int()) + case "DefFormation1": + out.DefFormation1 = string(in.String()) + case "DefFormation1RunToPass": + out.DefFormation1RunToPass = int(in.Int()) + case "DefFormation1BlitzWeight": + out.DefFormation1BlitzWeight = int(in.Int()) + case "DefFormation1BlitzAggression": + out.DefFormation1BlitzAggression = string(in.String()) + case "DefFormation2": + out.DefFormation2 = string(in.String()) + case "DefFormation2RunToPass": + out.DefFormation2RunToPass = int(in.Int()) + case "DefFormation2BlitzWeight": + out.DefFormation2BlitzWeight = int(in.Int()) + case "DefFormation2BlitzAggression": + out.DefFormation2BlitzAggression = string(in.String()) + case "DefFormation3": + out.DefFormation3 = string(in.String()) + case "DefFormation3RunToPass": + out.DefFormation3RunToPass = int(in.Int()) + case "DefFormation3BlitzWeight": + out.DefFormation3BlitzWeight = int(in.Int()) + case "DefFormation3BlitzAggression": + out.DefFormation3BlitzAggression = string(in.String()) + case "DefFormation4": + out.DefFormation4 = string(in.String()) + case "DefFormation4RunToPass": + out.DefFormation4RunToPass = int(in.Int()) + case "DefFormation4BlitzWeight": + out.DefFormation4BlitzWeight = int(in.Int()) + case "DefFormation4BlitzAggression": + out.DefFormation4BlitzAggression = string(in.String()) + case "DefFormation5": + out.DefFormation5 = string(in.String()) + case "DefFormation5RunToPass": + out.DefFormation5RunToPass = int(in.Int()) + case "DefFormation5BlitzWeight": + out.DefFormation5BlitzWeight = int(in.Int()) + case "DefFormation5BlitzAggression": + out.DefFormation5BlitzAggression = string(in.String()) + case "OffFormation1Name": + out.OffFormation1Name = string(in.String()) + case "OffForm1Weight": + out.OffForm1Weight = int(in.Int()) + case "OffForm1TraditionalRun": + out.OffForm1TraditionalRun = int(in.Int()) + case "OffForm1OptionRun": + out.OffForm1OptionRun = int(in.Int()) + case "OffForm1Pass": + out.OffForm1Pass = int(in.Int()) + case "OffForm1RPO": + out.OffForm1RPO = int(in.Int()) + case "OffFormation2Name": + out.OffFormation2Name = string(in.String()) + case "OffForm2Weight": + out.OffForm2Weight = int(in.Int()) + case "OffForm2TraditionalRun": + out.OffForm2TraditionalRun = int(in.Int()) + case "OffForm2OptionRun": + out.OffForm2OptionRun = int(in.Int()) + case "OffForm2Pass": + out.OffForm2Pass = int(in.Int()) + case "OffForm2RPO": + out.OffForm2RPO = int(in.Int()) + case "OffFormation3Name": + out.OffFormation3Name = string(in.String()) + case "OffForm3Weight": + out.OffForm3Weight = int(in.Int()) + case "OffForm3TraditionalRun": + out.OffForm3TraditionalRun = int(in.Int()) + case "OffForm3OptionRun": + out.OffForm3OptionRun = int(in.Int()) + case "OffForm3Pass": + out.OffForm3Pass = int(in.Int()) + case "OffForm3RPO": + out.OffForm3RPO = int(in.Int()) + case "OffFormation4Name": + out.OffFormation4Name = string(in.String()) + case "OffForm4Weight": + out.OffForm4Weight = int(in.Int()) + case "OffForm4TraditionalRun": + out.OffForm4TraditionalRun = int(in.Int()) + case "OffForm4OptionRun": + out.OffForm4OptionRun = int(in.Int()) + case "OffForm4Pass": + out.OffForm4Pass = int(in.Int()) + case "OffForm4RPO": + out.OffForm4RPO = int(in.Int()) + case "OffFormation5Name": + out.OffFormation5Name = string(in.String()) + case "OffForm5Weight": + out.OffForm5Weight = int(in.Int()) + case "OffForm5TraditionalRun": + out.OffForm5TraditionalRun = int(in.Int()) + case "OffForm5OptionRun": + out.OffForm5OptionRun = int(in.Int()) + case "OffForm5Pass": + out.OffForm5Pass = int(in.Int()) + case "OffForm5RPO": + out.OffForm5RPO = int(in.Int()) + case "RunnerDistributionQB": + out.RunnerDistributionQB = int(in.Int()) + case "RunnerDistributionRB1": + out.RunnerDistributionRB1 = int(in.Int()) + case "RunnerDistributionRB2": + out.RunnerDistributionRB2 = int(in.Int()) + case "RunnerDistributionRB3": + out.RunnerDistributionRB3 = int(in.Int()) + case "RunnerDistributionFB1": + out.RunnerDistributionFB1 = int(in.Int()) + case "RunnerDistributionFB2": + out.RunnerDistributionFB2 = int(in.Int()) + case "RunnerDistributionWR": + out.RunnerDistributionWR = int(in.Int()) + case "RunnerDistributionWRPosition": + out.RunnerDistributionWRPosition = string(in.String()) + case "RunnerDistributionWRID": + out.RunnerDistributionWRID = uint(in.Uint()) + case "RunOutsideLeft": + out.RunOutsideLeft = int(in.Int()) + case "RunOutsideRight": + out.RunOutsideRight = int(in.Int()) + case "RunInsideLeft": + out.RunInsideLeft = int(in.Int()) + case "RunInsideRight": + out.RunInsideRight = int(in.Int()) + case "RunPowerLeft": + out.RunPowerLeft = int(in.Int()) + case "RunPowerRight": + out.RunPowerRight = int(in.Int()) + case "RunDrawLeft": + out.RunDrawLeft = int(in.Int()) + case "RunDrawRight": + out.RunDrawRight = int(in.Int()) + case "ReadOptionLeft": + out.ReadOptionLeft = int(in.Int()) + case "ReadOptionRight": + out.ReadOptionRight = int(in.Int()) + case "SpeedOptionLeft": + out.SpeedOptionLeft = int(in.Int()) + case "SpeedOptionRight": + out.SpeedOptionRight = int(in.Int()) + case "InvertedOptionLeft": + out.InvertedOptionLeft = int(in.Int()) + case "InvertedOptionRight": + out.InvertedOptionRight = int(in.Int()) + case "TripleOptionLeft": + out.TripleOptionLeft = int(in.Int()) + case "TripleOptionRight": + out.TripleOptionRight = int(in.Int()) + case "PassQuick": + out.PassQuick = int(in.Int()) + case "PassShort": + out.PassShort = int(in.Int()) + case "PassLong": + out.PassLong = int(in.Int()) + case "PassDeep": + out.PassDeep = int(in.Int()) + case "PassScreen": + out.PassScreen = int(in.Int()) + case "PassPAShort": + out.PassPAShort = int(in.Int()) + case "PassPAMedium": + out.PassPAMedium = int(in.Int()) + case "PassPALong": + out.PassPALong = int(in.Int()) + case "PassPADeep": + out.PassPADeep = int(in.Int()) + case "LeftVsRight": + out.LeftVsRight = int(in.Int()) + case "ChoiceOutside": + out.ChoiceOutside = int(in.Int()) + case "ChoiceInside": + out.ChoiceInside = int(in.Int()) + case "ChoicePower": + out.ChoicePower = int(in.Int()) + case "PeekOutside": + out.PeekOutside = int(in.Int()) + case "PeekInside": + out.PeekInside = int(in.Int()) + case "PeekPower": + out.PeekPower = int(in.Int()) + case "TargetingWR1": + out.TargetingWR1 = int(in.Int()) + case "TargetDepthWR1": + out.TargetDepthWR1 = string(in.String()) + case "TargetingWR2": + out.TargetingWR2 = int(in.Int()) + case "TargetDepthWR2": + out.TargetDepthWR2 = string(in.String()) + case "TargetingWR3": + out.TargetingWR3 = int(in.Int()) + case "TargetDepthWR3": + out.TargetDepthWR3 = string(in.String()) + case "TargetingWR4": + out.TargetingWR4 = int(in.Int()) + case "TargetDepthWR4": + out.TargetDepthWR4 = string(in.String()) + case "TargetingWR5": + out.TargetingWR5 = int(in.Int()) + case "TargetDepthWR5": + out.TargetDepthWR5 = string(in.String()) + case "TargetingTE1": + out.TargetingTE1 = int(in.Int()) + case "TargetDepthTE1": + out.TargetDepthTE1 = string(in.String()) + case "TargetingTE2": + out.TargetingTE2 = int(in.Int()) + case "TargetDepthTE2": + out.TargetDepthTE2 = string(in.String()) + case "TargetingTE3": + out.TargetingTE3 = int(in.Int()) + case "TargetDepthTE3": + out.TargetDepthTE3 = string(in.String()) + case "TargetingRB1": + out.TargetingRB1 = int(in.Int()) + case "TargetDepthRB1": + out.TargetDepthRB1 = string(in.String()) + case "TargetingRB2": + out.TargetingRB2 = int(in.Int()) + case "TargetDepthRB2": + out.TargetDepthRB2 = string(in.String()) + case "TargetingFB1": + out.TargetingFB1 = int(in.Int()) + case "TargetDepthFB1": + out.TargetDepthFB1 = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out *jwriter.Writer, in structs.NFLGameplan) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"OffRunToPassRatio\":" + out.RawString(prefix) + out.Int(int(in.OffRunToPassRatio)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"BlitzSafeties\":" + out.RawString(prefix) + out.Bool(bool(in.BlitzSafeties)) + } + { + const prefix string = ",\"BlitzCorners\":" + out.RawString(prefix) + out.Bool(bool(in.BlitzCorners)) + } + { + const prefix string = ",\"LinebackerCoverage\":" + out.RawString(prefix) + out.String(string(in.LinebackerCoverage)) + } + { + const prefix string = ",\"CornersCoverage\":" + out.RawString(prefix) + out.String(string(in.CornersCoverage)) + } + { + const prefix string = ",\"SafetiesCoverage\":" + out.RawString(prefix) + out.String(string(in.SafetiesCoverage)) + } + { + const prefix string = ",\"DiveFocus\":" + out.RawString(prefix) + out.Int(int(in.DiveFocus)) + } + { + const prefix string = ",\"PitchFocus\":" + out.RawString(prefix) + out.Int(int(in.PitchFocus)) + } + { + const prefix string = ",\"PrimaryHB\":" + out.RawString(prefix) + out.Int(int(in.PrimaryHB)) + } + { + const prefix string = ",\"MaximumFGDistance\":" + out.RawString(prefix) + out.Int(int(in.MaximumFGDistance)) + } + { + const prefix string = ",\"GoFor4AndShort\":" + out.RawString(prefix) + out.Int(int(in.GoFor4AndShort)) + } + { + const prefix string = ",\"GoFor4AndLong\":" + out.RawString(prefix) + out.Int(int(in.GoFor4AndLong)) + } + { + const prefix string = ",\"HasSchemePenalty\":" + out.RawString(prefix) + out.Bool(bool(in.HasSchemePenalty)) + } + { + const prefix string = ",\"OffenseSchemePenalty\":" + out.RawString(prefix) + out.Uint(uint(in.OffenseSchemePenalty)) + } + { + const prefix string = ",\"DefenseSchemePenalty\":" + out.RawString(prefix) + out.Uint(uint(in.DefenseSchemePenalty)) + } + { + const prefix string = ",\"DefaultOffense\":" + out.RawString(prefix) + out.Bool(bool(in.DefaultOffense)) + } + { + const prefix string = ",\"DefaultDefense\":" + out.RawString(prefix) + out.Bool(bool(in.DefaultDefense)) + } + { + const prefix string = ",\"PreviousWeekBye\":" + out.RawString(prefix) + out.Bool(bool(in.PreviousWeekBye)) + } + { + const prefix string = ",\"FocusPlays\":" + out.RawString(prefix) + out.String(string(in.FocusPlays)) + } + { + const prefix string = ",\"DoubleTeam\":" + out.RawString(prefix) + out.Int(int(in.DoubleTeam)) + } + { + const prefix string = ",\"DefFormation1\":" + out.RawString(prefix) + out.String(string(in.DefFormation1)) + } + { + const prefix string = ",\"DefFormation1RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation1RunToPass)) + } + { + const prefix string = ",\"DefFormation1BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation1BlitzWeight)) + } + { + const prefix string = ",\"DefFormation1BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation1BlitzAggression)) + } + { + const prefix string = ",\"DefFormation2\":" + out.RawString(prefix) + out.String(string(in.DefFormation2)) + } + { + const prefix string = ",\"DefFormation2RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation2RunToPass)) + } + { + const prefix string = ",\"DefFormation2BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation2BlitzWeight)) + } + { + const prefix string = ",\"DefFormation2BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation2BlitzAggression)) + } + { + const prefix string = ",\"DefFormation3\":" + out.RawString(prefix) + out.String(string(in.DefFormation3)) + } + { + const prefix string = ",\"DefFormation3RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation3RunToPass)) + } + { + const prefix string = ",\"DefFormation3BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation3BlitzWeight)) + } + { + const prefix string = ",\"DefFormation3BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation3BlitzAggression)) + } + { + const prefix string = ",\"DefFormation4\":" + out.RawString(prefix) + out.String(string(in.DefFormation4)) + } + { + const prefix string = ",\"DefFormation4RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation4RunToPass)) + } + { + const prefix string = ",\"DefFormation4BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation4BlitzWeight)) + } + { + const prefix string = ",\"DefFormation4BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation4BlitzAggression)) + } + { + const prefix string = ",\"DefFormation5\":" + out.RawString(prefix) + out.String(string(in.DefFormation5)) + } + { + const prefix string = ",\"DefFormation5RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation5RunToPass)) + } + { + const prefix string = ",\"DefFormation5BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation5BlitzWeight)) + } + { + const prefix string = ",\"DefFormation5BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation5BlitzAggression)) + } + { + const prefix string = ",\"OffFormation1Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation1Name)) + } + { + const prefix string = ",\"OffForm1Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm1Weight)) + } + { + const prefix string = ",\"OffForm1TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm1TraditionalRun)) + } + { + const prefix string = ",\"OffForm1OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm1OptionRun)) + } + { + const prefix string = ",\"OffForm1Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm1Pass)) + } + { + const prefix string = ",\"OffForm1RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm1RPO)) + } + { + const prefix string = ",\"OffFormation2Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation2Name)) + } + { + const prefix string = ",\"OffForm2Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm2Weight)) + } + { + const prefix string = ",\"OffForm2TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm2TraditionalRun)) + } + { + const prefix string = ",\"OffForm2OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm2OptionRun)) + } + { + const prefix string = ",\"OffForm2Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm2Pass)) + } + { + const prefix string = ",\"OffForm2RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm2RPO)) + } + { + const prefix string = ",\"OffFormation3Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation3Name)) + } + { + const prefix string = ",\"OffForm3Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm3Weight)) + } + { + const prefix string = ",\"OffForm3TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm3TraditionalRun)) + } + { + const prefix string = ",\"OffForm3OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm3OptionRun)) + } + { + const prefix string = ",\"OffForm3Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm3Pass)) + } + { + const prefix string = ",\"OffForm3RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm3RPO)) + } + { + const prefix string = ",\"OffFormation4Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation4Name)) + } + { + const prefix string = ",\"OffForm4Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Weight)) + } + { + const prefix string = ",\"OffForm4TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4TraditionalRun)) + } + { + const prefix string = ",\"OffForm4OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4OptionRun)) + } + { + const prefix string = ",\"OffForm4Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Pass)) + } + { + const prefix string = ",\"OffForm4RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm4RPO)) + } + { + const prefix string = ",\"OffFormation5Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation5Name)) + } + { + const prefix string = ",\"OffForm5Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm5Weight)) + } + { + const prefix string = ",\"OffForm5TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm5TraditionalRun)) + } + { + const prefix string = ",\"OffForm5OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm5OptionRun)) + } + { + const prefix string = ",\"OffForm5Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm5Pass)) + } + { + const prefix string = ",\"OffForm5RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm5RPO)) + } + { + const prefix string = ",\"RunnerDistributionQB\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionQB)) + } + { + const prefix string = ",\"RunnerDistributionRB1\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB1)) + } + { + const prefix string = ",\"RunnerDistributionRB2\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB2)) + } + { + const prefix string = ",\"RunnerDistributionRB3\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB3)) + } + { + const prefix string = ",\"RunnerDistributionFB1\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionFB1)) + } + { + const prefix string = ",\"RunnerDistributionFB2\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionFB2)) + } + { + const prefix string = ",\"RunnerDistributionWR\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionWR)) + } + { + const prefix string = ",\"RunnerDistributionWRPosition\":" + out.RawString(prefix) + out.String(string(in.RunnerDistributionWRPosition)) + } + { + const prefix string = ",\"RunnerDistributionWRID\":" + out.RawString(prefix) + out.Uint(uint(in.RunnerDistributionWRID)) + } + { + const prefix string = ",\"RunOutsideLeft\":" + out.RawString(prefix) + out.Int(int(in.RunOutsideLeft)) + } + { + const prefix string = ",\"RunOutsideRight\":" + out.RawString(prefix) + out.Int(int(in.RunOutsideRight)) + } + { + const prefix string = ",\"RunInsideLeft\":" + out.RawString(prefix) + out.Int(int(in.RunInsideLeft)) + } + { + const prefix string = ",\"RunInsideRight\":" + out.RawString(prefix) + out.Int(int(in.RunInsideRight)) + } + { + const prefix string = ",\"RunPowerLeft\":" + out.RawString(prefix) + out.Int(int(in.RunPowerLeft)) + } + { + const prefix string = ",\"RunPowerRight\":" + out.RawString(prefix) + out.Int(int(in.RunPowerRight)) + } + { + const prefix string = ",\"RunDrawLeft\":" + out.RawString(prefix) + out.Int(int(in.RunDrawLeft)) + } + { + const prefix string = ",\"RunDrawRight\":" + out.RawString(prefix) + out.Int(int(in.RunDrawRight)) + } + { + const prefix string = ",\"ReadOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.ReadOptionLeft)) + } + { + const prefix string = ",\"ReadOptionRight\":" + out.RawString(prefix) + out.Int(int(in.ReadOptionRight)) + } + { + const prefix string = ",\"SpeedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.SpeedOptionLeft)) + } + { + const prefix string = ",\"SpeedOptionRight\":" + out.RawString(prefix) + out.Int(int(in.SpeedOptionRight)) + } + { + const prefix string = ",\"InvertedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionLeft)) + } + { + const prefix string = ",\"InvertedOptionRight\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionRight)) + } + { + const prefix string = ",\"TripleOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.TripleOptionLeft)) + } + { + const prefix string = ",\"TripleOptionRight\":" + out.RawString(prefix) + out.Int(int(in.TripleOptionRight)) + } + { + const prefix string = ",\"PassQuick\":" + out.RawString(prefix) + out.Int(int(in.PassQuick)) + } + { + const prefix string = ",\"PassShort\":" + out.RawString(prefix) + out.Int(int(in.PassShort)) + } + { + const prefix string = ",\"PassLong\":" + out.RawString(prefix) + out.Int(int(in.PassLong)) + } + { + const prefix string = ",\"PassDeep\":" + out.RawString(prefix) + out.Int(int(in.PassDeep)) + } + { + const prefix string = ",\"PassScreen\":" + out.RawString(prefix) + out.Int(int(in.PassScreen)) + } + { + const prefix string = ",\"PassPAShort\":" + out.RawString(prefix) + out.Int(int(in.PassPAShort)) + } + { + const prefix string = ",\"PassPAMedium\":" + out.RawString(prefix) + out.Int(int(in.PassPAMedium)) + } + { + const prefix string = ",\"PassPALong\":" + out.RawString(prefix) + out.Int(int(in.PassPALong)) + } + { + const prefix string = ",\"PassPADeep\":" + out.RawString(prefix) + out.Int(int(in.PassPADeep)) + } + { + const prefix string = ",\"LeftVsRight\":" + out.RawString(prefix) + out.Int(int(in.LeftVsRight)) + } + { + const prefix string = ",\"ChoiceOutside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceOutside)) + } + { + const prefix string = ",\"ChoiceInside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceInside)) + } + { + const prefix string = ",\"ChoicePower\":" + out.RawString(prefix) + out.Int(int(in.ChoicePower)) + } + { + const prefix string = ",\"PeekOutside\":" + out.RawString(prefix) + out.Int(int(in.PeekOutside)) + } + { + const prefix string = ",\"PeekInside\":" + out.RawString(prefix) + out.Int(int(in.PeekInside)) + } + { + const prefix string = ",\"PeekPower\":" + out.RawString(prefix) + out.Int(int(in.PeekPower)) + } + { + const prefix string = ",\"TargetingWR1\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR1)) + } + { + const prefix string = ",\"TargetDepthWR1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR1)) + } + { + const prefix string = ",\"TargetingWR2\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR2)) + } + { + const prefix string = ",\"TargetDepthWR2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR2)) + } + { + const prefix string = ",\"TargetingWR3\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR3)) + } + { + const prefix string = ",\"TargetDepthWR3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR3)) + } + { + const prefix string = ",\"TargetingWR4\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR4)) + } + { + const prefix string = ",\"TargetDepthWR4\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR4)) + } + { + const prefix string = ",\"TargetingWR5\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR5)) + } + { + const prefix string = ",\"TargetDepthWR5\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR5)) + } + { + const prefix string = ",\"TargetingTE1\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE1)) + } + { + const prefix string = ",\"TargetDepthTE1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE1)) + } + { + const prefix string = ",\"TargetingTE2\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE2)) + } + { + const prefix string = ",\"TargetDepthTE2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE2)) + } + { + const prefix string = ",\"TargetingTE3\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE3)) + } + { + const prefix string = ",\"TargetDepthTE3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE3)) + } + { + const prefix string = ",\"TargetingRB1\":" + out.RawString(prefix) + out.Int(int(in.TargetingRB1)) + } + { + const prefix string = ",\"TargetDepthRB1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthRB1)) + } + { + const prefix string = ",\"TargetingRB2\":" + out.RawString(prefix) + out.Int(int(in.TargetingRB2)) + } + { + const prefix string = ",\"TargetDepthRB2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthRB2)) + } + { + const prefix string = ",\"TargetingFB1\":" + out.RawString(prefix) + out.Int(int(in.TargetingFB1)) + } + { + const prefix string = ",\"TargetDepthFB1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthFB1)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in *jlexer.Lexer, out *structs.NFLDepthChart) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "DepthChartPlayers": + if in.IsNull() { + in.Skip() + out.DepthChartPlayers = nil + } else { + in.Delim('[') + if out.DepthChartPlayers == nil { + if !in.IsDelim(']') { + out.DepthChartPlayers = make([]structs.NFLDepthChartPosition, 0, 0) + } else { + out.DepthChartPlayers = []structs.NFLDepthChartPosition{} + } + } else { + out.DepthChartPlayers = (out.DepthChartPlayers)[:0] + } + for !in.IsDelim(']') { + var v39 structs.NFLDepthChartPosition + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v39) + out.DepthChartPlayers = append(out.DepthChartPlayers, v39) + in.WantComma() + } + in.Delim(']') + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out *jwriter.Writer, in structs.NFLDepthChart) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"DepthChartPlayers\":" + out.RawString(prefix) + if in.DepthChartPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v40, v41 := range in.DepthChartPlayers { + if v40 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v41) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in *jlexer.Lexer, out *structs.NFLDepthChartPosition) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "DepthChartID": + out.DepthChartID = uint(in.Uint()) + case "PlayerID": + out.PlayerID = uint(in.Uint()) + case "Position": + out.Position = string(in.String()) + case "PositionLevel": + out.PositionLevel = string(in.String()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "OriginalPosition": + out.OriginalPosition = string(in.String()) + case "NFLPlayer": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &out.NFLPlayer) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out *jwriter.Writer, in structs.NFLDepthChartPosition) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"DepthChartID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.DepthChartID)) + } + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.PlayerID)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"PositionLevel\":" + out.RawString(prefix) + out.String(string(in.PositionLevel)) + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"OriginalPosition\":" + out.RawString(prefix) + out.String(string(in.OriginalPosition)) + } + { + const prefix string = ",\"NFLPlayer\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, in.NFLPlayer) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in *jlexer.Lexer, out *structs.NFLPlayer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "CollegeID": + out.CollegeID = uint(in.Uint()) + case "College": + out.College = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Experience": + out.Experience = uint(in.Uint()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "Hometown": + out.Hometown = string(in.String()) + case "State": + out.State = string(in.String()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsPracticeSquad": + out.IsPracticeSquad = bool(in.Bool()) + case "IsFreeAgent": + out.IsFreeAgent = bool(in.Bool()) + case "IsWaived": + out.IsWaived = bool(in.Bool()) + case "IsOnTradeBlock": + out.IsOnTradeBlock = bool(in.Bool()) + case "IsAcceptingOffers": + out.IsAcceptingOffers = bool(in.Bool()) + case "IsNegotiating": + out.IsNegotiating = bool(in.Bool()) + case "NegotiationRound": + out.NegotiationRound = uint(in.Uint()) + case "SigningRound": + out.SigningRound = uint(in.Uint()) + case "MinimumValue": + out.MinimumValue = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "DraftedTeamID": + out.DraftedTeamID = uint(in.Uint()) + case "DraftedTeam": + out.DraftedTeam = string(in.String()) + case "DraftedRound": + out.DraftedRound = uint(in.Uint()) + case "DraftPickID": + out.DraftPickID = uint(in.Uint()) + case "DraftedPick": + out.DraftedPick = uint(in.Uint()) + case "ShowLetterGrade": + out.ShowLetterGrade = bool(in.Bool()) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "Rejections": + out.Rejections = int(in.Int()) + case "ProBowls": + out.ProBowls = uint8(in.Uint8()) + case "TagType": + out.TagType = uint8(in.Uint8()) + case "Stats": + if in.IsNull() { + in.Skip() + out.Stats = nil + } else { + in.Delim('[') + if out.Stats == nil { + if !in.IsDelim(']') { + out.Stats = make([]structs.NFLPlayerStats, 0, 0) + } else { + out.Stats = []structs.NFLPlayerStats{} + } + } else { + out.Stats = (out.Stats)[:0] + } + for !in.IsDelim(']') { + var v42 structs.NFLPlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v42) + out.Stats = append(out.Stats, v42) + in.WantComma() + } + in.Delim(']') + } + case "SeasonStats": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &out.SeasonStats) + case "Contract": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &out.Contract) + case "Offers": + if in.IsNull() { + in.Skip() + out.Offers = nil + } else { + in.Delim('[') + if out.Offers == nil { + if !in.IsDelim(']') { + out.Offers = make([]structs.FreeAgencyOffer, 0, 0) + } else { + out.Offers = []structs.FreeAgencyOffer{} + } + } else { + out.Offers = (out.Offers)[:0] + } + for !in.IsDelim(']') { + var v43 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v43) + out.Offers = append(out.Offers, v43) + in.WantComma() + } + in.Delim(']') + } + case "WaiverOffers": + if in.IsNull() { + in.Skip() + out.WaiverOffers = nil + } else { + in.Delim('[') + if out.WaiverOffers == nil { + if !in.IsDelim(']') { + out.WaiverOffers = make([]structs.NFLWaiverOffer, 0, 1) + } else { + out.WaiverOffers = []structs.NFLWaiverOffer{} + } + } else { + out.WaiverOffers = (out.WaiverOffers)[:0] + } + for !in.IsDelim(']') { + var v44 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v44) + out.WaiverOffers = append(out.WaiverOffers, v44) + in.WantComma() + } + in.Delim(']') + } + case "Extensions": + if in.IsNull() { + in.Skip() + out.Extensions = nil + } else { + in.Delim('[') + if out.Extensions == nil { + if !in.IsDelim(']') { + out.Extensions = make([]structs.NFLExtensionOffer, 0, 0) + } else { + out.Extensions = []structs.NFLExtensionOffer{} + } + } else { + out.Extensions = (out.Extensions)[:0] + } + for !in.IsDelim(']') { + var v45 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v45) + out.Extensions = append(out.Extensions, v45) + in.WantComma() + } + in.Delim(']') + } + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Age": + out.Age = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "Overall": + out.Overall = int(in.Int()) + case "Stamina": + out.Stamina = int(in.Int()) + case "Injury": + out.Injury = int(in.Int()) + case "FootballIQ": + out.FootballIQ = int(in.Int()) + case "Speed": + out.Speed = int(in.Int()) + case "Carrying": + out.Carrying = int(in.Int()) + case "Agility": + out.Agility = int(in.Int()) + case "Catching": + out.Catching = int(in.Int()) + case "RouteRunning": + out.RouteRunning = int(in.Int()) + case "ZoneCoverage": + out.ZoneCoverage = int(in.Int()) + case "ManCoverage": + out.ManCoverage = int(in.Int()) + case "Strength": + out.Strength = int(in.Int()) + case "Tackle": + out.Tackle = int(in.Int()) + case "PassBlock": + out.PassBlock = int(in.Int()) + case "RunBlock": + out.RunBlock = int(in.Int()) + case "PassRush": + out.PassRush = int(in.Int()) + case "RunDefense": + out.RunDefense = int(in.Int()) + case "ThrowPower": + out.ThrowPower = int(in.Int()) + case "ThrowAccuracy": + out.ThrowAccuracy = int(in.Int()) + case "KickAccuracy": + out.KickAccuracy = int(in.Int()) + case "KickPower": + out.KickPower = int(in.Int()) + case "PuntAccuracy": + out.PuntAccuracy = int(in.Int()) + case "PuntPower": + out.PuntPower = int(in.Int()) + case "Progression": + out.Progression = int(in.Int()) + case "Discipline": + out.Discipline = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out *jwriter.Writer, in structs.NFLPlayer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"CollegeID\":" + out.RawString(prefix) + out.Uint(uint(in.CollegeID)) + } + { + const prefix string = ",\"College\":" + out.RawString(prefix) + out.String(string(in.College)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Experience\":" + out.RawString(prefix) + out.Uint(uint(in.Experience)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"Hometown\":" + out.RawString(prefix) + out.String(string(in.Hometown)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsPracticeSquad\":" + out.RawString(prefix) + out.Bool(bool(in.IsPracticeSquad)) + } + { + const prefix string = ",\"IsFreeAgent\":" + out.RawString(prefix) + out.Bool(bool(in.IsFreeAgent)) + } + { + const prefix string = ",\"IsWaived\":" + out.RawString(prefix) + out.Bool(bool(in.IsWaived)) + } + { + const prefix string = ",\"IsOnTradeBlock\":" + out.RawString(prefix) + out.Bool(bool(in.IsOnTradeBlock)) + } + { + const prefix string = ",\"IsAcceptingOffers\":" + out.RawString(prefix) + out.Bool(bool(in.IsAcceptingOffers)) + } + { + const prefix string = ",\"IsNegotiating\":" + out.RawString(prefix) + out.Bool(bool(in.IsNegotiating)) + } + { + const prefix string = ",\"NegotiationRound\":" + out.RawString(prefix) + out.Uint(uint(in.NegotiationRound)) + } + { + const prefix string = ",\"SigningRound\":" + out.RawString(prefix) + out.Uint(uint(in.SigningRound)) + } + { + const prefix string = ",\"MinimumValue\":" + out.RawString(prefix) + out.Float64(float64(in.MinimumValue)) + } + { + const prefix string = ",\"AAV\":" + out.RawString(prefix) + out.Float64(float64(in.AAV)) + } + { + const prefix string = ",\"DraftedTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedTeamID)) + } + { + const prefix string = ",\"DraftedTeam\":" + out.RawString(prefix) + out.String(string(in.DraftedTeam)) + } + { + const prefix string = ",\"DraftedRound\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedRound)) + } + { + const prefix string = ",\"DraftPickID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftPickID)) + } + { + const prefix string = ",\"DraftedPick\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedPick)) + } + { + const prefix string = ",\"ShowLetterGrade\":" + out.RawString(prefix) + out.Bool(bool(in.ShowLetterGrade)) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"Rejections\":" + out.RawString(prefix) + out.Int(int(in.Rejections)) + } + { + const prefix string = ",\"ProBowls\":" + out.RawString(prefix) + out.Uint8(uint8(in.ProBowls)) + } + { + const prefix string = ",\"TagType\":" + out.RawString(prefix) + out.Uint8(uint8(in.TagType)) + } + { + const prefix string = ",\"Stats\":" + out.RawString(prefix) + if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v46, v47 := range in.Stats { + if v46 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v47) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"SeasonStats\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, in.SeasonStats) + } + { + const prefix string = ",\"Contract\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, in.Contract) + } + { + const prefix string = ",\"Offers\":" + out.RawString(prefix) + if in.Offers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v48, v49 := range in.Offers { + if v48 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v49) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"WaiverOffers\":" + out.RawString(prefix) + if in.WaiverOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v50, v51 := range in.WaiverOffers { + if v50 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v51) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"Extensions\":" + out.RawString(prefix) + if in.Extensions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v52, v53 := range in.Extensions { + if v52 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v53) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"Overall\":" + out.RawString(prefix) + out.Int(int(in.Overall)) + } + { + const prefix string = ",\"Stamina\":" + out.RawString(prefix) + out.Int(int(in.Stamina)) + } + { + const prefix string = ",\"Injury\":" + out.RawString(prefix) + out.Int(int(in.Injury)) + } + { + const prefix string = ",\"FootballIQ\":" + out.RawString(prefix) + out.Int(int(in.FootballIQ)) + } + { + const prefix string = ",\"Speed\":" + out.RawString(prefix) + out.Int(int(in.Speed)) + } + { + const prefix string = ",\"Carrying\":" + out.RawString(prefix) + out.Int(int(in.Carrying)) + } + { + const prefix string = ",\"Agility\":" + out.RawString(prefix) + out.Int(int(in.Agility)) + } + { + const prefix string = ",\"Catching\":" + out.RawString(prefix) + out.Int(int(in.Catching)) + } + { + const prefix string = ",\"RouteRunning\":" + out.RawString(prefix) + out.Int(int(in.RouteRunning)) + } + { + const prefix string = ",\"ZoneCoverage\":" + out.RawString(prefix) + out.Int(int(in.ZoneCoverage)) + } + { + const prefix string = ",\"ManCoverage\":" + out.RawString(prefix) + out.Int(int(in.ManCoverage)) + } + { + const prefix string = ",\"Strength\":" + out.RawString(prefix) + out.Int(int(in.Strength)) + } + { + const prefix string = ",\"Tackle\":" + out.RawString(prefix) + out.Int(int(in.Tackle)) + } + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int(int(in.PassBlock)) + } + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int(int(in.RunBlock)) + } + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int(int(in.PassRush)) + } + { + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int(int(in.RunDefense)) + } + { + const prefix string = ",\"ThrowPower\":" + out.RawString(prefix) + out.Int(int(in.ThrowPower)) + } + { + const prefix string = ",\"ThrowAccuracy\":" + out.RawString(prefix) + out.Int(int(in.ThrowAccuracy)) + } + { + const prefix string = ",\"KickAccuracy\":" + out.RawString(prefix) + out.Int(int(in.KickAccuracy)) + } + { + const prefix string = ",\"KickPower\":" + out.RawString(prefix) + out.Int(int(in.KickPower)) + } + { + const prefix string = ",\"PuntAccuracy\":" + out.RawString(prefix) + out.Int(int(in.PuntAccuracy)) + } + { + const prefix string = ",\"PuntPower\":" + out.RawString(prefix) + out.Int(int(in.PuntPower)) + } + { + const prefix string = ",\"Progression\":" + out.RawString(prefix) + out.Int(int(in.Progression)) + } + { + const prefix string = ",\"Discipline\":" + out.RawString(prefix) + out.Int(int(in.Discipline)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"FreeAgency\":" + out.RawString(prefix) + out.String(string(in.FreeAgency)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"IsInjured\":" + out.RawString(prefix) + out.Bool(bool(in.IsInjured)) + } + { + const prefix string = ",\"InjuryName\":" + out.RawString(prefix) + out.String(string(in.InjuryName)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryReserve\":" + out.RawString(prefix) + out.Bool(bool(in.InjuryReserve)) + } + { + const prefix string = ",\"PrimeAge\":" + out.RawString(prefix) + out.Uint(uint(in.PrimeAge)) + } + { + const prefix string = ",\"Clutch\":" + out.RawString(prefix) + out.Int(int(in.Clutch)) + } + { + const prefix string = ",\"Shotgun\":" + out.RawString(prefix) + out.Int(int(in.Shotgun)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"ArchetypeTwo\":" + out.RawString(prefix) + out.String(string(in.ArchetypeTwo)) + } + { + const prefix string = ",\"RelativeID\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeID)) + } + { + const prefix string = ",\"RelativeType\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeType)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in *jlexer.Lexer, out *structs.NFLExtensionOffer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "TotalBonus": + out.TotalBonus = float64(in.Float64()) + case "TotalSalary": + out.TotalSalary = float64(in.Float64()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "Rejections": + out.Rejections = int(in.Int()) + case "IsAccepted": + out.IsAccepted = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsRejected": + out.IsRejected = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out *jwriter.Writer, in structs.NFLExtensionOffer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"Y1BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1BaseSalary)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y2BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2BaseSalary)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y3BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3BaseSalary)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y4BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4BaseSalary)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y5BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5BaseSalary)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"TotalBonus\":" + out.RawString(prefix) + out.Float64(float64(in.TotalBonus)) + } + { + const prefix string = ",\"TotalSalary\":" + out.RawString(prefix) + out.Float64(float64(in.TotalSalary)) + } + { + const prefix string = ",\"ContractValue\":" + out.RawString(prefix) + out.Float64(float64(in.ContractValue)) + } + { + const prefix string = ",\"BonusPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.BonusPercentage)) + } + { + const prefix string = ",\"AAV\":" + out.RawString(prefix) + out.Float64(float64(in.AAV)) + } + { + const prefix string = ",\"Rejections\":" + out.RawString(prefix) + out.Int(int(in.Rejections)) + } + { + const prefix string = ",\"IsAccepted\":" + out.RawString(prefix) + out.Bool(bool(in.IsAccepted)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsRejected\":" + out.RawString(prefix) + out.Bool(bool(in.IsRejected)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in *jlexer.Lexer, out *structs.NFLWaiverOffer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ID": + out.ID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "WaiverOrder": + out.WaiverOrder = uint(in.Uint()) + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "IsActive": + out.IsActive = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out *jwriter.Writer, in structs.NFLWaiverOffer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"WaiverOrder\":" + out.RawString(prefix) + out.Uint(uint(in.WaiverOrder)) + } + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in *jlexer.Lexer, out *structs.FreeAgencyOffer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "TotalBonus": + out.TotalBonus = float64(in.Float64()) + case "TotalSalary": + out.TotalSalary = float64(in.Float64()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "Syncs": + out.Syncs = uint8(in.Uint8()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsRejected": + out.IsRejected = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out *jwriter.Writer, in structs.FreeAgencyOffer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"Y1BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1BaseSalary)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y2BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2BaseSalary)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y3BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3BaseSalary)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y4BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4BaseSalary)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y5BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5BaseSalary)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"TotalBonus\":" + out.RawString(prefix) + out.Float64(float64(in.TotalBonus)) + } + { + const prefix string = ",\"TotalSalary\":" + out.RawString(prefix) + out.Float64(float64(in.TotalSalary)) + } + { + const prefix string = ",\"ContractValue\":" + out.RawString(prefix) + out.Float64(float64(in.ContractValue)) + } + { + const prefix string = ",\"BonusPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.BonusPercentage)) + } + { + const prefix string = ",\"AAV\":" + out.RawString(prefix) + out.Float64(float64(in.AAV)) + } + { + const prefix string = ",\"Syncs\":" + out.RawString(prefix) + out.Uint8(uint8(in.Syncs)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsRejected\":" + out.RawString(prefix) + out.Bool(bool(in.IsRejected)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in *jlexer.Lexer, out *structs.NFLPlayerSeasonStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = uint(in.Uint()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "RushingAvg": + out.RushingAvg = float64(in.Float64()) + case "PassingAvg": + out.PassingAvg = float64(in.Float64()) + case "ReceivingAvg": + out.ReceivingAvg = float64(in.Float64()) + case "Completion": + out.Completion = float64(in.Float64()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassAttempts": + out.PassAttempts = int(in.Int()) + case "PassCompletions": + out.PassCompletions = int(in.Int()) + case "PassingTDs": + out.PassingTDs = int(in.Int()) + case "Interceptions": + out.Interceptions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "Sacks": + out.Sacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingTDs": + out.RushingTDs = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "Targets": + out.Targets = int(in.Int()) + case "Catches": + out.Catches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "ReceivingTDs": + out.ReceivingTDs = int(in.Int()) + case "LongestReception": + out.LongestReception = int(in.Int()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "RecoveredFumbles": + out.RecoveredFumbles = int(in.Int()) + case "PassDeflections": + out.PassDeflections = int(in.Int()) + case "InterceptionsCaught": + out.InterceptionsCaught = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "FGMade": + out.FGMade = int(in.Int()) + case "FGAttempts": + out.FGAttempts = int(in.Int()) + case "LongestFG": + out.LongestFG = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "GrossPuntDistance": + out.GrossPuntDistance = int(in.Int()) + case "NetPuntDistance": + out.NetPuntDistance = int(in.Int()) + case "PuntTouchbacks": + out.PuntTouchbacks = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "KickReturns": + out.KickReturns = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "PuntReturns": + out.PuntReturns = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int(in.Int()) + case "FGBlocked": + out.FGBlocked = int(in.Int()) + case "Snaps": + out.Snaps = int(in.Int()) + case "Pancakes": + out.Pancakes = int(in.Int()) + case "SacksAllowed": + out.SacksAllowed = int(in.Int()) + case "PlayedGame": + out.PlayedGame = int(in.Int()) + case "StartedGame": + out.StartedGame = int(in.Int()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out *jwriter.Writer, in structs.NFLPlayerSeasonStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLPlayerID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Uint(uint(in.Year)) + } + { + const prefix string = ",\"GamesPlayed\":" + out.RawString(prefix) + out.Int(int(in.GamesPlayed)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"RushingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.RushingAvg)) + } + { + const prefix string = ",\"PassingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.PassingAvg)) + } + { + const prefix string = ",\"ReceivingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.ReceivingAvg)) + } + { + const prefix string = ",\"Completion\":" + out.RawString(prefix) + out.Float64(float64(in.Completion)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int(int(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int(int(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int(int(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int(int(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int(int(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int(int(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int(int(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"RecoveredFumbles\":" + out.RawString(prefix) + out.Int(int(in.RecoveredFumbles)) + } + { + const prefix string = ",\"PassDeflections\":" + out.RawString(prefix) + out.Int(int(in.PassDeflections)) + } + { + const prefix string = ",\"InterceptionsCaught\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCaught)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"FGMade\":" + out.RawString(prefix) + out.Int(int(in.FGMade)) + } + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int(int(in.FGAttempts)) + } + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int(int(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int(int(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int(int(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int(int(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int(int(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int(int(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int(int(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int(int(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int(int(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int(int(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in *jlexer.Lexer, out *structs.NFLPlayerStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "IsPreseasonGame": + out.IsPreseasonGame = bool(in.Bool()) + case "NFLPlayerID": + out.NFLPlayerID = int(in.Int()) + case "GameID": + out.GameID = int(in.Int()) + case "WeekID": + out.WeekID = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "Year": + out.Year = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassAttempts": + out.PassAttempts = int(in.Int()) + case "PassCompletions": + out.PassCompletions = int(in.Int()) + case "PassingTDs": + out.PassingTDs = int(in.Int()) + case "Interceptions": + out.Interceptions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "Sacks": + out.Sacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingTDs": + out.RushingTDs = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "Targets": + out.Targets = int(in.Int()) + case "Catches": + out.Catches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "ReceivingTDs": + out.ReceivingTDs = int(in.Int()) + case "LongestReception": + out.LongestReception = int(in.Int()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "RecoveredFumbles": + out.RecoveredFumbles = int(in.Int()) + case "PassDeflections": + out.PassDeflections = int(in.Int()) + case "InterceptionsCaught": + out.InterceptionsCaught = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "FGMade": + out.FGMade = int(in.Int()) + case "FGAttempts": + out.FGAttempts = int(in.Int()) + case "LongestFG": + out.LongestFG = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "GrossPuntDistance": + out.GrossPuntDistance = int(in.Int()) + case "NetPuntDistance": + out.NetPuntDistance = int(in.Int()) + case "PuntTouchbacks": + out.PuntTouchbacks = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "KickReturns": + out.KickReturns = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "PuntReturns": + out.PuntReturns = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int(in.Int()) + case "FGBlocked": + out.FGBlocked = int(in.Int()) + case "Snaps": + out.Snaps = int(in.Int()) + case "Pancakes": + out.Pancakes = int(in.Int()) + case "SacksAllowed": + out.SacksAllowed = int(in.Int()) + case "PlayedGame": + out.PlayedGame = int(in.Int()) + case "StartedGame": + out.StartedGame = int(in.Int()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out *jwriter.Writer, in structs.NFLPlayerStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"IsPreseasonGame\":" + out.RawString(prefix[1:]) + out.Bool(bool(in.IsPreseasonGame)) + } + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix) + out.Int(int(in.NFLPlayerID)) + } + { + const prefix string = ",\"GameID\":" + out.RawString(prefix) + out.Int(int(in.GameID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"OpposingTeam\":" + out.RawString(prefix) + out.String(string(in.OpposingTeam)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int(int(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int(int(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int(int(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int(int(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int(int(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int(int(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int(int(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"RecoveredFumbles\":" + out.RawString(prefix) + out.Int(int(in.RecoveredFumbles)) + } + { + const prefix string = ",\"PassDeflections\":" + out.RawString(prefix) + out.Int(int(in.PassDeflections)) + } + { + const prefix string = ",\"InterceptionsCaught\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCaught)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"FGMade\":" + out.RawString(prefix) + out.Int(int(in.FGMade)) + } + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int(int(in.FGAttempts)) + } + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int(int(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int(int(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int(int(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int(int(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int(int(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int(int(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int(int(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int(int(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int(int(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int(int(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int(int(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int(int(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in *jlexer.Lexer, out *structs.NFLTeamSeasonStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = int(in.Int()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "TotalOffensiveYards": + out.TotalOffensiveYards = int(in.Int()) + case "TotalYardsAllowed": + out.TotalYardsAllowed = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "Turnovers": + out.Turnovers = int(in.Int()) + case "PointsScored": + out.PointsScored = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "TwoPointTries": + out.TwoPointTries = int(in.Int()) + case "TwoPointSucceed": + out.TwoPointSucceed = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassingAttempts": + out.PassingAttempts = int(in.Int()) + case "PassingCompletions": + out.PassingCompletions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "PassingTouchdowns": + out.PassingTouchdowns = int(in.Int()) + case "PassingInterceptions": + out.PassingInterceptions = int(in.Int()) + case "QBSacks": + out.QBSacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingYardsPerAttempt": + out.RushingYardsPerAttempt = float64(in.Float64()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "RushingTouchdowns": + out.RushingTouchdowns = int(in.Int()) + case "RushingFumbles": + out.RushingFumbles = int(in.Int()) + case "ReceivingTargets": + out.ReceivingTargets = int(in.Int()) + case "ReceivingCatches": + out.ReceivingCatches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "YardsPerCatch": + out.YardsPerCatch = float64(in.Float64()) + case "ReceivingTouchdowns": + out.ReceivingTouchdowns = int(in.Int()) + case "ReceivingFumbles": + out.ReceivingFumbles = int(in.Int()) + case "PassingYardsAllowed": + out.PassingYardsAllowed = int(in.Int()) + case "PassingTDsAllowed": + out.PassingTDsAllowed = int(in.Int()) + case "PassingCompletionsAllowed": + out.PassingCompletionsAllowed = int(in.Int()) + case "RushingYardsAllowed": + out.RushingYardsAllowed = int(in.Int()) + case "RushingTDsAllowed": + out.RushingTDsAllowed = int(in.Int()) + case "RushingYardsPerAttemptAllowed": + out.RushingYardsPerAttemptAllowed = float64(in.Float64()) + case "SoloTackles": + out.SoloTackles = int(in.Int()) + case "AssistedTackles": + out.AssistedTackles = int(in.Int()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "DefensiveSacks": + out.DefensiveSacks = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "FumblesRecovered": + out.FumblesRecovered = int(in.Int()) + case "DefensiveInterceptions": + out.DefensiveInterceptions = int(in.Int()) + case "TurnoverYards": + out.TurnoverYards = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "ExtraPointPercentage": + out.ExtraPointPercentage = float64(in.Float64()) + case "FieldGoalsMade": + out.FieldGoalsMade = int(in.Int()) + case "FieldGoalsAttempted": + out.FieldGoalsAttempted = int(in.Int()) + case "FieldGoalsPercentage": + out.FieldGoalsPercentage = float64(in.Float64()) + case "LongestFieldGoal": + out.LongestFieldGoal = int(in.Int()) + case "KickoffTBs": + out.KickoffTBs = int(in.Int()) + case "PuntTBs": + out.PuntTBs = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "PuntYards": + out.PuntYards = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "PuntAverage": + out.PuntAverage = float64(in.Float64()) + case "Inside20YardLine": + out.Inside20YardLine = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "OffensivePenalties": + out.OffensivePenalties = int(in.Int()) + case "DefensivePenalties": + out.DefensivePenalties = int(in.Int()) + case "OffPenaltyYards": + out.OffPenaltyYards = int(in.Int()) + case "DefPenaltyYards": + out.DefPenaltyYards = int(in.Int()) + case "Score1Q": + out.Score1Q = int(in.Int()) + case "Score2Q": + out.Score2Q = int(in.Int()) + case "Score3Q": + out.Score3Q = int(in.Int()) + case "Score4Q": + out.Score4Q = int(in.Int()) + case "Score5Q": + out.Score5Q = int(in.Int()) + case "Score6Q": + out.Score6Q = int(in.Int()) + case "Score7Q": + out.Score7Q = int(in.Int()) + case "ScoreOT": + out.ScoreOT = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "OffensiveSnaps": + out.OffensiveSnaps = uint16(in.Uint16()) + case "DefensiveSnaps": + out.DefensiveSnaps = uint16(in.Uint16()) + case "SpecialTeamSnaps": + out.SpecialTeamSnaps = uint16(in.Uint16()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out *jwriter.Writer, in structs.NFLTeamSeasonStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"GamesPlayed\":" + out.RawString(prefix) + out.Int(int(in.GamesPlayed)) + } + { + const prefix string = ",\"TotalOffensiveYards\":" + out.RawString(prefix) + out.Int(int(in.TotalOffensiveYards)) + } + { + const prefix string = ",\"TotalYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.TotalYardsAllowed)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"Turnovers\":" + out.RawString(prefix) + out.Int(int(in.Turnovers)) + } + { + const prefix string = ",\"PointsScored\":" + out.RawString(prefix) + out.Int(int(in.PointsScored)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"TwoPointTries\":" + out.RawString(prefix) + out.Int(int(in.TwoPointTries)) + } + { + const prefix string = ",\"TwoPointSucceed\":" + out.RawString(prefix) + out.Int(int(in.TwoPointSucceed)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassingAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassingAttempts)) + } + { + const prefix string = ",\"PassingCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"PassingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.PassingTouchdowns)) + } + { + const prefix string = ",\"PassingInterceptions\":" + out.RawString(prefix) + out.Int(int(in.PassingInterceptions)) + } + { + const prefix string = ",\"QBSacks\":" + out.RawString(prefix) + out.Int(int(in.QBSacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingYardsPerAttempt\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttempt)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"RushingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.RushingTouchdowns)) + } + { + const prefix string = ",\"RushingFumbles\":" + out.RawString(prefix) + out.Int(int(in.RushingFumbles)) + } + { + const prefix string = ",\"ReceivingTargets\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTargets)) + } + { + const prefix string = ",\"ReceivingCatches\":" + out.RawString(prefix) + out.Int(int(in.ReceivingCatches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"YardsPerCatch\":" + out.RawString(prefix) + out.Float64(float64(in.YardsPerCatch)) + } + { + const prefix string = ",\"ReceivingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTouchdowns)) + } + { + const prefix string = ",\"ReceivingFumbles\":" + out.RawString(prefix) + out.Int(int(in.ReceivingFumbles)) + } + { + const prefix string = ",\"PassingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsAllowed)) + } + { + const prefix string = ",\"PassingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingTDsAllowed)) + } + { + const prefix string = ",\"PassingCompletionsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletionsAllowed)) + } + { + const prefix string = ",\"RushingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsAllowed)) + } + { + const prefix string = ",\"RushingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingTDsAllowed)) + } + { + const prefix string = ",\"RushingYardsPerAttemptAllowed\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttemptAllowed)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Int(int(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Int(int(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"DefensiveSacks\":" + out.RawString(prefix) + out.Float64(float64(in.DefensiveSacks)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"FumblesRecovered\":" + out.RawString(prefix) + out.Int(int(in.FumblesRecovered)) + } + { + const prefix string = ",\"DefensiveInterceptions\":" + out.RawString(prefix) + out.Int(int(in.DefensiveInterceptions)) + } + { + const prefix string = ",\"TurnoverYards\":" + out.RawString(prefix) + out.Int(int(in.TurnoverYards)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"ExtraPointPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.ExtraPointPercentage)) + } + { + const prefix string = ",\"FieldGoalsMade\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsMade)) + } + { + const prefix string = ",\"FieldGoalsAttempted\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsAttempted)) + } + { + const prefix string = ",\"FieldGoalsPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.FieldGoalsPercentage)) + } + { + const prefix string = ",\"LongestFieldGoal\":" + out.RawString(prefix) + out.Int(int(in.LongestFieldGoal)) + } + { + const prefix string = ",\"KickoffTBs\":" + out.RawString(prefix) + out.Int(int(in.KickoffTBs)) + } + { + const prefix string = ",\"PuntTBs\":" + out.RawString(prefix) + out.Int(int(in.PuntTBs)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"PuntYards\":" + out.RawString(prefix) + out.Int(int(in.PuntYards)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"PuntAverage\":" + out.RawString(prefix) + out.Float64(float64(in.PuntAverage)) + } + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"OffensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.OffensivePenalties)) + } + { + const prefix string = ",\"DefensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.DefensivePenalties)) + } + { + const prefix string = ",\"OffPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.OffPenaltyYards)) + } + { + const prefix string = ",\"DefPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.DefPenaltyYards)) + } + { + const prefix string = ",\"Score1Q\":" + out.RawString(prefix) + out.Int(int(in.Score1Q)) + } + { + const prefix string = ",\"Score2Q\":" + out.RawString(prefix) + out.Int(int(in.Score2Q)) + } + { + const prefix string = ",\"Score3Q\":" + out.RawString(prefix) + out.Int(int(in.Score3Q)) + } + { + const prefix string = ",\"Score4Q\":" + out.RawString(prefix) + out.Int(int(in.Score4Q)) + } + { + const prefix string = ",\"Score5Q\":" + out.RawString(prefix) + out.Int(int(in.Score5Q)) + } + { + const prefix string = ",\"Score6Q\":" + out.RawString(prefix) + out.Int(int(in.Score6Q)) + } + { + const prefix string = ",\"Score7Q\":" + out.RawString(prefix) + out.Int(int(in.Score7Q)) + } + { + const prefix string = ",\"ScoreOT\":" + out.RawString(prefix) + out.Int(int(in.ScoreOT)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"OffensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in *jlexer.Lexer, out *structs.NFLTeamStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "GameID": + out.GameID = uint(in.Uint()) + case "WeekID": + out.WeekID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "IsPreseasonGame": + out.IsPreseasonGame = bool(in.Bool()) + case "PointsScored": + out.PointsScored = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "TwoPointTries": + out.TwoPointTries = int(in.Int()) + case "TwoPointSucceed": + out.TwoPointSucceed = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassingAttempts": + out.PassingAttempts = int(in.Int()) + case "PassingCompletions": + out.PassingCompletions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "PassingTouchdowns": + out.PassingTouchdowns = int(in.Int()) + case "PassingInterceptions": + out.PassingInterceptions = int(in.Int()) + case "QBRating": + out.QBRating = int(in.Int()) + case "QBSacks": + out.QBSacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingYardsPerAttempt": + out.RushingYardsPerAttempt = float64(in.Float64()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "RushingTouchdowns": + out.RushingTouchdowns = int(in.Int()) + case "RushingFumbles": + out.RushingFumbles = int(in.Int()) + case "ReceivingTargets": + out.ReceivingTargets = int(in.Int()) + case "ReceivingCatches": + out.ReceivingCatches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "YardsPerCatch": + out.YardsPerCatch = float64(in.Float64()) + case "ReceivingTouchdowns": + out.ReceivingTouchdowns = int(in.Int()) + case "ReceivingFumbles": + out.ReceivingFumbles = int(in.Int()) + case "PassingYardsAllowed": + out.PassingYardsAllowed = int(in.Int()) + case "PassingTDsAllowed": + out.PassingTDsAllowed = int(in.Int()) + case "PassingCompletionsAllowed": + out.PassingCompletionsAllowed = int(in.Int()) + case "RushingYardsAllowed": + out.RushingYardsAllowed = int(in.Int()) + case "RushingTDsAllowed": + out.RushingTDsAllowed = int(in.Int()) + case "RushingYardsPerAttemptAllowed": + out.RushingYardsPerAttemptAllowed = float64(in.Float64()) + case "SoloTackles": + out.SoloTackles = int(in.Int()) + case "AssistedTackles": + out.AssistedTackles = int(in.Int()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "DefensiveSacks": + out.DefensiveSacks = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "FumblesRecovered": + out.FumblesRecovered = int(in.Int()) + case "DefensiveInterceptions": + out.DefensiveInterceptions = int(in.Int()) + case "TurnoverYards": + out.TurnoverYards = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "ExtraPointPercentage": + out.ExtraPointPercentage = float64(in.Float64()) + case "FieldGoalsMade": + out.FieldGoalsMade = int(in.Int()) + case "FieldGoalsAttempted": + out.FieldGoalsAttempted = int(in.Int()) + case "FieldGoalsPercentage": + out.FieldGoalsPercentage = float64(in.Float64()) + case "LongestFieldGoal": + out.LongestFieldGoal = int(in.Int()) + case "KickoffTBs": + out.KickoffTBs = int(in.Int()) + case "PuntTBs": + out.PuntTBs = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "PuntYards": + out.PuntYards = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "PuntAverage": + out.PuntAverage = float64(in.Float64()) + case "Inside20YardLine": + out.Inside20YardLine = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "OffensivePenalties": + out.OffensivePenalties = int(in.Int()) + case "DefensivePenalties": + out.DefensivePenalties = int(in.Int()) + case "OffPenaltyYards": + out.OffPenaltyYards = int(in.Int()) + case "DefPenaltyYards": + out.DefPenaltyYards = int(in.Int()) + case "Score1Q": + out.Score1Q = int(in.Int()) + case "Score2Q": + out.Score2Q = int(in.Int()) + case "Score3Q": + out.Score3Q = int(in.Int()) + case "Score4Q": + out.Score4Q = int(in.Int()) + case "Score5Q": + out.Score5Q = int(in.Int()) + case "Score6Q": + out.Score6Q = int(in.Int()) + case "Score7Q": + out.Score7Q = int(in.Int()) + case "ScoreOT": + out.ScoreOT = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "OffensiveSnaps": + out.OffensiveSnaps = uint16(in.Uint16()) + case "DefensiveSnaps": + out.DefensiveSnaps = uint16(in.Uint16()) + case "SpecialTeamSnaps": + out.SpecialTeamSnaps = uint16(in.Uint16()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out *jwriter.Writer, in structs.NFLTeamStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"GameID\":" + out.RawString(prefix) + out.Uint(uint(in.GameID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Uint(uint(in.WeekID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"OpposingTeam\":" + out.RawString(prefix) + out.String(string(in.OpposingTeam)) + } + { + const prefix string = ",\"IsPreseasonGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsPreseasonGame)) + } + { + const prefix string = ",\"PointsScored\":" + out.RawString(prefix) + out.Int(int(in.PointsScored)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"TwoPointTries\":" + out.RawString(prefix) + out.Int(int(in.TwoPointTries)) + } + { + const prefix string = ",\"TwoPointSucceed\":" + out.RawString(prefix) + out.Int(int(in.TwoPointSucceed)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassingAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassingAttempts)) + } + { + const prefix string = ",\"PassingCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"PassingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.PassingTouchdowns)) + } + { + const prefix string = ",\"PassingInterceptions\":" + out.RawString(prefix) + out.Int(int(in.PassingInterceptions)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Int(int(in.QBRating)) + } + { + const prefix string = ",\"QBSacks\":" + out.RawString(prefix) + out.Int(int(in.QBSacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingYardsPerAttempt\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttempt)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"RushingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.RushingTouchdowns)) + } + { + const prefix string = ",\"RushingFumbles\":" + out.RawString(prefix) + out.Int(int(in.RushingFumbles)) + } + { + const prefix string = ",\"ReceivingTargets\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTargets)) + } + { + const prefix string = ",\"ReceivingCatches\":" + out.RawString(prefix) + out.Int(int(in.ReceivingCatches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"YardsPerCatch\":" + out.RawString(prefix) + out.Float64(float64(in.YardsPerCatch)) + } + { + const prefix string = ",\"ReceivingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTouchdowns)) + } + { + const prefix string = ",\"ReceivingFumbles\":" + out.RawString(prefix) + out.Int(int(in.ReceivingFumbles)) + } + { + const prefix string = ",\"PassingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsAllowed)) + } + { + const prefix string = ",\"PassingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingTDsAllowed)) + } + { + const prefix string = ",\"PassingCompletionsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletionsAllowed)) + } + { + const prefix string = ",\"RushingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsAllowed)) + } + { + const prefix string = ",\"RushingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingTDsAllowed)) + } + { + const prefix string = ",\"RushingYardsPerAttemptAllowed\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttemptAllowed)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Int(int(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Int(int(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"DefensiveSacks\":" + out.RawString(prefix) + out.Float64(float64(in.DefensiveSacks)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"FumblesRecovered\":" + out.RawString(prefix) + out.Int(int(in.FumblesRecovered)) + } + { + const prefix string = ",\"DefensiveInterceptions\":" + out.RawString(prefix) + out.Int(int(in.DefensiveInterceptions)) + } + { + const prefix string = ",\"TurnoverYards\":" + out.RawString(prefix) + out.Int(int(in.TurnoverYards)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"ExtraPointPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.ExtraPointPercentage)) + } + { + const prefix string = ",\"FieldGoalsMade\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsMade)) + } + { + const prefix string = ",\"FieldGoalsAttempted\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsAttempted)) + } + { + const prefix string = ",\"FieldGoalsPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.FieldGoalsPercentage)) + } + { + const prefix string = ",\"LongestFieldGoal\":" + out.RawString(prefix) + out.Int(int(in.LongestFieldGoal)) + } + { + const prefix string = ",\"KickoffTBs\":" + out.RawString(prefix) + out.Int(int(in.KickoffTBs)) + } + { + const prefix string = ",\"PuntTBs\":" + out.RawString(prefix) + out.Int(int(in.PuntTBs)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"PuntYards\":" + out.RawString(prefix) + out.Int(int(in.PuntYards)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"PuntAverage\":" + out.RawString(prefix) + out.Float64(float64(in.PuntAverage)) + } + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"OffensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.OffensivePenalties)) + } + { + const prefix string = ",\"DefensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.DefensivePenalties)) + } + { + const prefix string = ",\"OffPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.OffPenaltyYards)) + } + { + const prefix string = ",\"DefPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.DefPenaltyYards)) + } + { + const prefix string = ",\"Score1Q\":" + out.RawString(prefix) + out.Int(int(in.Score1Q)) + } + { + const prefix string = ",\"Score2Q\":" + out.RawString(prefix) + out.Int(int(in.Score2Q)) + } + { + const prefix string = ",\"Score3Q\":" + out.RawString(prefix) + out.Int(int(in.Score3Q)) + } + { + const prefix string = ",\"Score4Q\":" + out.RawString(prefix) + out.Int(int(in.Score4Q)) + } + { + const prefix string = ",\"Score5Q\":" + out.RawString(prefix) + out.Int(int(in.Score5Q)) + } + { + const prefix string = ",\"Score6Q\":" + out.RawString(prefix) + out.Int(int(in.Score6Q)) + } + { + const prefix string = ",\"Score7Q\":" + out.RawString(prefix) + out.Int(int(in.Score7Q)) + } + { + const prefix string = ",\"ScoreOT\":" + out.RawString(prefix) + out.Int(int(in.ScoreOT)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"OffensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in *jlexer.Lexer, out *structs.NFLDraftPick) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Season": + out.Season = uint(in.Uint()) + case "DrafteeID": + out.DrafteeID = uint(in.Uint()) + case "DraftRound": + out.DraftRound = uint(in.Uint()) + case "DraftNumber": + out.DraftNumber = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "OriginalTeamID": + out.OriginalTeamID = uint(in.Uint()) + case "OriginalTeam": + out.OriginalTeam = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "DraftValue": + out.DraftValue = float64(in.Float64()) + case "Notes": + out.Notes = string(in.String()) + case "SelectedPlayerID": + out.SelectedPlayerID = uint(in.Uint()) + case "SelectedPlayerName": + out.SelectedPlayerName = string(in.String()) + case "SelectedPlayerPosition": + out.SelectedPlayerPosition = string(in.String()) + case "IsCompensation": + out.IsCompensation = bool(in.Bool()) + case "IsVoid": + out.IsVoid = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out *jwriter.Writer, in structs.NFLDraftPick) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Season\":" + out.RawString(prefix) + out.Uint(uint(in.Season)) + } + { + const prefix string = ",\"DrafteeID\":" + out.RawString(prefix) + out.Uint(uint(in.DrafteeID)) + } + { + const prefix string = ",\"DraftRound\":" + out.RawString(prefix) + out.Uint(uint(in.DraftRound)) + } + { + const prefix string = ",\"DraftNumber\":" + out.RawString(prefix) + out.Uint(uint(in.DraftNumber)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"OriginalTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.OriginalTeamID)) + } + { + const prefix string = ",\"OriginalTeam\":" + out.RawString(prefix) + out.String(string(in.OriginalTeam)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"DraftValue\":" + out.RawString(prefix) + out.Float64(float64(in.DraftValue)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"SelectedPlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.SelectedPlayerID)) + } + { + const prefix string = ",\"SelectedPlayerName\":" + out.RawString(prefix) + out.String(string(in.SelectedPlayerName)) + } + { + const prefix string = ",\"SelectedPlayerPosition\":" + out.RawString(prefix) + out.String(string(in.SelectedPlayerPosition)) + } + { + const prefix string = ",\"IsCompensation\":" + out.RawString(prefix) + out.Bool(bool(in.IsCompensation)) + } + { + const prefix string = ",\"IsVoid\":" + out.RawString(prefix) + out.Bool(bool(in.IsVoid)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in *jlexer.Lexer, out *structs.NFLContract) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "NFLPlayerID": + out.NFLPlayerID = int(in.Int()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "OriginalTeamID": + out.OriginalTeamID = uint(in.Uint()) + case "OriginalTeam": + out.OriginalTeam = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "ContractType": + out.ContractType = string(in.String()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "SigningValue": + out.SigningValue = float64(in.Float64()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsComplete": + out.IsComplete = bool(in.Bool()) + case "IsExtended": + out.IsExtended = bool(in.Bool()) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "PlayerRetired": + out.PlayerRetired = bool(in.Bool()) + case "TagType": + out.TagType = uint8(in.Uint8()) + case "IsTagged": + out.IsTagged = bool(in.Bool()) + case "IsCut": + out.IsCut = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out *jwriter.Writer, in structs.NFLContract) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix) + out.Int(int(in.NFLPlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"OriginalTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.OriginalTeamID)) + } + { + const prefix string = ",\"OriginalTeam\":" + out.RawString(prefix) + out.String(string(in.OriginalTeam)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"Y1BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1BaseSalary)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y2BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2BaseSalary)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y3BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3BaseSalary)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y4BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4BaseSalary)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y5BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5BaseSalary)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"BonusPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.BonusPercentage)) + } + { + const prefix string = ",\"ContractType\":" + out.RawString(prefix) + out.String(string(in.ContractType)) + } + { + const prefix string = ",\"ContractValue\":" + out.RawString(prefix) + out.Float64(float64(in.ContractValue)) + } + { + const prefix string = ",\"SigningValue\":" + out.RawString(prefix) + out.Float64(float64(in.SigningValue)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsComplete\":" + out.RawString(prefix) + out.Bool(bool(in.IsComplete)) + } + { + const prefix string = ",\"IsExtended\":" + out.RawString(prefix) + out.Bool(bool(in.IsExtended)) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"PlayerRetired\":" + out.RawString(prefix) + out.Bool(bool(in.PlayerRetired)) + } + { + const prefix string = ",\"TagType\":" + out.RawString(prefix) + out.Uint8(uint8(in.TagType)) + } + { + const prefix string = ",\"IsTagged\":" + out.RawString(prefix) + out.Bool(bool(in.IsTagged)) + } + { + const prefix string = ",\"IsCut\":" + out.RawString(prefix) + out.Bool(bool(in.IsCut)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in *jlexer.Lexer, out *structs.NFLCapsheet) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLTeamID": + out.NFLTeamID = uint(in.Uint()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y1Salary": + out.Y1Salary = float64(in.Float64()) + case "Y1CapHit": + out.Y1CapHit = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y2Salary": + out.Y2Salary = float64(in.Float64()) + case "Y2CapHit": + out.Y2CapHit = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y3Salary": + out.Y3Salary = float64(in.Float64()) + case "Y3CapHit": + out.Y3CapHit = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y4Salary": + out.Y4Salary = float64(in.Float64()) + case "Y4CapHit": + out.Y4CapHit = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "Y5Salary": + out.Y5Salary = float64(in.Float64()) + case "Y5CapHit": + out.Y5CapHit = float64(in.Float64()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out *jwriter.Writer, in structs.NFLCapsheet) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLTeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLTeamID)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y1Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Salary)) + } + { + const prefix string = ",\"Y1CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y1CapHit)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y2Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Salary)) + } + { + const prefix string = ",\"Y2CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y2CapHit)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y3Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Salary)) + } + { + const prefix string = ",\"Y3CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y3CapHit)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y4Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Salary)) + } + { + const prefix string = ",\"Y4CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y4CapHit)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"Y5Salary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Salary)) + } + { + const prefix string = ",\"Y5CapHit\":" + out.RawString(prefix) + out.Float64(float64(in.Y5CapHit)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, out *structs.CollegeTeam) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ConferenceID": + out.ConferenceID = int(in.Int()) + case "Conference": + out.Conference = string(in.String()) + case "DivisionID": + out.DivisionID = int(in.Int()) + case "Division": + out.Division = string(in.String()) + case "ProgramPrestige": + out.ProgramPrestige = int(in.Int()) + case "AcademicPrestige": + out.AcademicPrestige = int(in.Int()) + case "Facilities": + out.Facilities = int(in.Int()) + case "IsFBS": + out.IsFBS = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "PlayersProgressed": + out.PlayersProgressed = bool(in.Bool()) + case "RecruitsAdded": + out.RecruitsAdded = bool(in.Bool()) + case "CollegeCoach": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in, &out.CollegeCoach) + case "RecruitingProfile": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, &out.RecruitingProfile) + case "TeamStats": + if in.IsNull() { + in.Skip() + out.TeamStats = nil + } else { + in.Delim('[') + if out.TeamStats == nil { + if !in.IsDelim(']') { + out.TeamStats = make([]structs.CollegeTeamStats, 0, 0) + } else { + out.TeamStats = []structs.CollegeTeamStats{} + } + } else { + out.TeamStats = (out.TeamStats)[:0] + } + for !in.IsDelim(']') { + var v54 structs.CollegeTeamStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &v54) + out.TeamStats = append(out.TeamStats, v54) + in.WantComma() + } + in.Delim(']') + } + case "TeamSeasonStats": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in, &out.TeamSeasonStats) + case "TeamRecord": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs27(in, &out.TeamRecord) + case "TeamGameplan": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &out.TeamGameplan) + case "TeamDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &out.TeamDepthChart) + case "TeamStandings": + if in.IsNull() { + in.Skip() + out.TeamStandings = nil + } else { + in.Delim('[') + if out.TeamStandings == nil { + if !in.IsDelim(']') { + out.TeamStandings = make([]structs.CollegeStandings, 0, 0) + } else { + out.TeamStandings = []structs.CollegeStandings{} + } + } else { + out.TeamStandings = (out.TeamStandings)[:0] + } + for !in.IsDelim(']') { + var v55 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v55) + out.TeamStandings = append(out.TeamStandings, v55) + in.WantComma() + } + in.Delim(']') + } + case "TeamName": + out.TeamName = string(in.String()) + case "Mascot": + out.Mascot = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Coach": + out.Coach = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Country": + out.Country = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "StadiumCapacity": + out.StadiumCapacity = int(in.Int()) + case "RecordAttendance": + out.RecordAttendance = int(in.Int()) + case "Enrollment": + out.Enrollment = int(in.Int()) + case "FirstPlayed": + out.FirstPlayed = int(in.Int()) + case "ColorOne": + out.ColorOne = string(in.String()) + case "ColorTwo": + out.ColorTwo = string(in.String()) + case "ColorThree": + out.ColorThree = string(in.String()) + case "DiscordID": + out.DiscordID = string(in.String()) + case "OverallGrade": + out.OverallGrade = string(in.String()) + case "OffenseGrade": + out.OffenseGrade = string(in.String()) + case "DefenseGrade": + out.DefenseGrade = string(in.String()) + case "SpecialTeamsGrade": + out.SpecialTeamsGrade = string(in.String()) + case "PenaltyMarks": + out.PenaltyMarks = uint8(in.Uint8()) + case "JerseyType": + out.JerseyType = uint8(in.Uint8()) + case "LastLogin": + if data := in.Raw(); in.Ok() { + in.AddError((out.LastLogin).UnmarshalJSON(data)) + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out *jwriter.Writer, in structs.CollegeTeam) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix[1:]) + out.Int(int(in.ConferenceID)) + } + { + const prefix string = ",\"Conference\":" + out.RawString(prefix) + out.String(string(in.Conference)) + } + { + const prefix string = ",\"DivisionID\":" + out.RawString(prefix) + out.Int(int(in.DivisionID)) + } + { + const prefix string = ",\"Division\":" + out.RawString(prefix) + out.String(string(in.Division)) + } + { + const prefix string = ",\"ProgramPrestige\":" + out.RawString(prefix) + out.Int(int(in.ProgramPrestige)) + } + { + const prefix string = ",\"AcademicPrestige\":" + out.RawString(prefix) + out.Int(int(in.AcademicPrestige)) + } + { + const prefix string = ",\"Facilities\":" + out.RawString(prefix) + out.Int(int(in.Facilities)) + } + { + const prefix string = ",\"IsFBS\":" + out.RawString(prefix) + out.Bool(bool(in.IsFBS)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"PlayersProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.PlayersProgressed)) + } + { + const prefix string = ",\"RecruitsAdded\":" + out.RawString(prefix) + out.Bool(bool(in.RecruitsAdded)) + } + { + const prefix string = ",\"CollegeCoach\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out, in.CollegeCoach) + } + { + const prefix string = ",\"RecruitingProfile\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, in.RecruitingProfile) + } + { + const prefix string = ",\"TeamStats\":" + out.RawString(prefix) + if in.TeamStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v56, v57 := range in.TeamStats { + if v56 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, v57) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamSeasonStats\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out, in.TeamSeasonStats) + } + { + const prefix string = ",\"TeamRecord\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs27(out, in.TeamRecord) + } + { + const prefix string = ",\"TeamGameplan\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, in.TeamGameplan) + } + { + const prefix string = ",\"TeamDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, in.TeamDepthChart) + } + { + const prefix string = ",\"TeamStandings\":" + out.RawString(prefix) + if in.TeamStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v58, v59 := range in.TeamStandings { + if v58 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v59) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"Mascot\":" + out.RawString(prefix) + out.String(string(in.Mascot)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Coach\":" + out.RawString(prefix) + out.String(string(in.Coach)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Country\":" + out.RawString(prefix) + out.String(string(in.Country)) + } + { + const prefix string = ",\"StadiumID\":" + out.RawString(prefix) + out.Uint(uint(in.StadiumID)) + } + { + const prefix string = ",\"Stadium\":" + out.RawString(prefix) + out.String(string(in.Stadium)) + } + { + const prefix string = ",\"StadiumCapacity\":" + out.RawString(prefix) + out.Int(int(in.StadiumCapacity)) + } + { + const prefix string = ",\"RecordAttendance\":" + out.RawString(prefix) + out.Int(int(in.RecordAttendance)) + } + { + const prefix string = ",\"Enrollment\":" + out.RawString(prefix) + out.Int(int(in.Enrollment)) + } + { + const prefix string = ",\"FirstPlayed\":" + out.RawString(prefix) + out.Int(int(in.FirstPlayed)) + } + { + const prefix string = ",\"ColorOne\":" + out.RawString(prefix) + out.String(string(in.ColorOne)) + } + { + const prefix string = ",\"ColorTwo\":" + out.RawString(prefix) + out.String(string(in.ColorTwo)) + } + { + const prefix string = ",\"ColorThree\":" + out.RawString(prefix) + out.String(string(in.ColorThree)) + } + { + const prefix string = ",\"DiscordID\":" + out.RawString(prefix) + out.String(string(in.DiscordID)) + } + { + const prefix string = ",\"OverallGrade\":" + out.RawString(prefix) + out.String(string(in.OverallGrade)) + } + { + const prefix string = ",\"OffenseGrade\":" + out.RawString(prefix) + out.String(string(in.OffenseGrade)) + } + { + const prefix string = ",\"DefenseGrade\":" + out.RawString(prefix) + out.String(string(in.DefenseGrade)) + } + { + const prefix string = ",\"SpecialTeamsGrade\":" + out.RawString(prefix) + out.String(string(in.SpecialTeamsGrade)) + } + { + const prefix string = ",\"PenaltyMarks\":" + out.RawString(prefix) + out.Uint8(uint8(in.PenaltyMarks)) + } + { + const prefix string = ",\"JerseyType\":" + out.RawString(prefix) + out.Uint8(uint8(in.JerseyType)) + } + { + const prefix string = ",\"LastLogin\":" + out.RawString(prefix) + out.Raw((in.LastLogin).MarshalJSON()) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in *jlexer.Lexer, out *structs.CollegeTeamDepthChart) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "DepthChartPlayers": + if in.IsNull() { + in.Skip() + out.DepthChartPlayers = nil + } else { + in.Delim('[') + if out.DepthChartPlayers == nil { + if !in.IsDelim(']') { + out.DepthChartPlayers = make([]structs.CollegeDepthChartPosition, 0, 0) + } else { + out.DepthChartPlayers = []structs.CollegeDepthChartPosition{} + } + } else { + out.DepthChartPlayers = (out.DepthChartPlayers)[:0] + } + for !in.IsDelim(']') { + var v60 structs.CollegeDepthChartPosition + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in, &v60) + out.DepthChartPlayers = append(out.DepthChartPlayers, v60) + in.WantComma() + } + in.Delim(']') + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out *jwriter.Writer, in structs.CollegeTeamDepthChart) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"DepthChartPlayers\":" + out.RawString(prefix) + if in.DepthChartPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v61, v62 := range in.DepthChartPlayers { + if v61 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out, v62) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in *jlexer.Lexer, out *structs.CollegeDepthChartPosition) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "DepthChartID": + out.DepthChartID = int(in.Int()) + case "PlayerID": + out.PlayerID = int(in.Int()) + case "Position": + out.Position = string(in.String()) + case "PositionLevel": + out.PositionLevel = string(in.String()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "OriginalPosition": + out.OriginalPosition = string(in.String()) + case "CollegePlayer": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &out.CollegePlayer) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out *jwriter.Writer, in structs.CollegeDepthChartPosition) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"DepthChartID\":" + out.RawString(prefix[1:]) + out.Int(int(in.DepthChartID)) + } + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"PositionLevel\":" + out.RawString(prefix) + out.String(string(in.PositionLevel)) + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"OriginalPosition\":" + out.RawString(prefix) + out.String(string(in.OriginalPosition)) + } + { + const prefix string = ",\"CollegePlayer\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, in.CollegePlayer) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in *jlexer.Lexer, out *structs.CollegeGameplan) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "OffRunToPassRatio": + out.OffRunToPassRatio = int(in.Int()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "BlitzSafeties": + out.BlitzSafeties = bool(in.Bool()) + case "BlitzCorners": + out.BlitzCorners = bool(in.Bool()) + case "LinebackerCoverage": + out.LinebackerCoverage = string(in.String()) + case "CornersCoverage": + out.CornersCoverage = string(in.String()) + case "SafetiesCoverage": + out.SafetiesCoverage = string(in.String()) + case "DiveFocus": + out.DiveFocus = int(in.Int()) + case "PitchFocus": + out.PitchFocus = int(in.Int()) + case "PrimaryHB": + out.PrimaryHB = int(in.Int()) + case "MaximumFGDistance": + out.MaximumFGDistance = int(in.Int()) + case "GoFor4AndShort": + out.GoFor4AndShort = int(in.Int()) + case "GoFor4AndLong": + out.GoFor4AndLong = int(in.Int()) + case "HasSchemePenalty": + out.HasSchemePenalty = bool(in.Bool()) + case "OffenseSchemePenalty": + out.OffenseSchemePenalty = uint(in.Uint()) + case "DefenseSchemePenalty": + out.DefenseSchemePenalty = uint(in.Uint()) + case "DefaultOffense": + out.DefaultOffense = bool(in.Bool()) + case "DefaultDefense": + out.DefaultDefense = bool(in.Bool()) + case "PreviousWeekBye": + out.PreviousWeekBye = bool(in.Bool()) + case "FocusPlays": + out.FocusPlays = string(in.String()) + case "DoubleTeam": + out.DoubleTeam = int(in.Int()) + case "DefFormation1": + out.DefFormation1 = string(in.String()) + case "DefFormation1RunToPass": + out.DefFormation1RunToPass = int(in.Int()) + case "DefFormation1BlitzWeight": + out.DefFormation1BlitzWeight = int(in.Int()) + case "DefFormation1BlitzAggression": + out.DefFormation1BlitzAggression = string(in.String()) + case "DefFormation2": + out.DefFormation2 = string(in.String()) + case "DefFormation2RunToPass": + out.DefFormation2RunToPass = int(in.Int()) + case "DefFormation2BlitzWeight": + out.DefFormation2BlitzWeight = int(in.Int()) + case "DefFormation2BlitzAggression": + out.DefFormation2BlitzAggression = string(in.String()) + case "DefFormation3": + out.DefFormation3 = string(in.String()) + case "DefFormation3RunToPass": + out.DefFormation3RunToPass = int(in.Int()) + case "DefFormation3BlitzWeight": + out.DefFormation3BlitzWeight = int(in.Int()) + case "DefFormation3BlitzAggression": + out.DefFormation3BlitzAggression = string(in.String()) + case "DefFormation4": + out.DefFormation4 = string(in.String()) + case "DefFormation4RunToPass": + out.DefFormation4RunToPass = int(in.Int()) + case "DefFormation4BlitzWeight": + out.DefFormation4BlitzWeight = int(in.Int()) + case "DefFormation4BlitzAggression": + out.DefFormation4BlitzAggression = string(in.String()) + case "DefFormation5": + out.DefFormation5 = string(in.String()) + case "DefFormation5RunToPass": + out.DefFormation5RunToPass = int(in.Int()) + case "DefFormation5BlitzWeight": + out.DefFormation5BlitzWeight = int(in.Int()) + case "DefFormation5BlitzAggression": + out.DefFormation5BlitzAggression = string(in.String()) + case "OffFormation1Name": + out.OffFormation1Name = string(in.String()) + case "OffForm1Weight": + out.OffForm1Weight = int(in.Int()) + case "OffForm1TraditionalRun": + out.OffForm1TraditionalRun = int(in.Int()) + case "OffForm1OptionRun": + out.OffForm1OptionRun = int(in.Int()) + case "OffForm1Pass": + out.OffForm1Pass = int(in.Int()) + case "OffForm1RPO": + out.OffForm1RPO = int(in.Int()) + case "OffFormation2Name": + out.OffFormation2Name = string(in.String()) + case "OffForm2Weight": + out.OffForm2Weight = int(in.Int()) + case "OffForm2TraditionalRun": + out.OffForm2TraditionalRun = int(in.Int()) + case "OffForm2OptionRun": + out.OffForm2OptionRun = int(in.Int()) + case "OffForm2Pass": + out.OffForm2Pass = int(in.Int()) + case "OffForm2RPO": + out.OffForm2RPO = int(in.Int()) + case "OffFormation3Name": + out.OffFormation3Name = string(in.String()) + case "OffForm3Weight": + out.OffForm3Weight = int(in.Int()) + case "OffForm3TraditionalRun": + out.OffForm3TraditionalRun = int(in.Int()) + case "OffForm3OptionRun": + out.OffForm3OptionRun = int(in.Int()) + case "OffForm3Pass": + out.OffForm3Pass = int(in.Int()) + case "OffForm3RPO": + out.OffForm3RPO = int(in.Int()) + case "OffFormation4Name": + out.OffFormation4Name = string(in.String()) + case "OffForm4Weight": + out.OffForm4Weight = int(in.Int()) + case "OffForm4TraditionalRun": + out.OffForm4TraditionalRun = int(in.Int()) + case "OffForm4OptionRun": + out.OffForm4OptionRun = int(in.Int()) + case "OffForm4Pass": + out.OffForm4Pass = int(in.Int()) + case "OffForm4RPO": + out.OffForm4RPO = int(in.Int()) + case "OffFormation5Name": + out.OffFormation5Name = string(in.String()) + case "OffForm5Weight": + out.OffForm5Weight = int(in.Int()) + case "OffForm5TraditionalRun": + out.OffForm5TraditionalRun = int(in.Int()) + case "OffForm5OptionRun": + out.OffForm5OptionRun = int(in.Int()) + case "OffForm5Pass": + out.OffForm5Pass = int(in.Int()) + case "OffForm5RPO": + out.OffForm5RPO = int(in.Int()) + case "RunnerDistributionQB": + out.RunnerDistributionQB = int(in.Int()) + case "RunnerDistributionRB1": + out.RunnerDistributionRB1 = int(in.Int()) + case "RunnerDistributionRB2": + out.RunnerDistributionRB2 = int(in.Int()) + case "RunnerDistributionRB3": + out.RunnerDistributionRB3 = int(in.Int()) + case "RunnerDistributionFB1": + out.RunnerDistributionFB1 = int(in.Int()) + case "RunnerDistributionFB2": + out.RunnerDistributionFB2 = int(in.Int()) + case "RunnerDistributionWR": + out.RunnerDistributionWR = int(in.Int()) + case "RunnerDistributionWRPosition": + out.RunnerDistributionWRPosition = string(in.String()) + case "RunnerDistributionWRID": + out.RunnerDistributionWRID = uint(in.Uint()) + case "RunOutsideLeft": + out.RunOutsideLeft = int(in.Int()) + case "RunOutsideRight": + out.RunOutsideRight = int(in.Int()) + case "RunInsideLeft": + out.RunInsideLeft = int(in.Int()) + case "RunInsideRight": + out.RunInsideRight = int(in.Int()) + case "RunPowerLeft": + out.RunPowerLeft = int(in.Int()) + case "RunPowerRight": + out.RunPowerRight = int(in.Int()) + case "RunDrawLeft": + out.RunDrawLeft = int(in.Int()) + case "RunDrawRight": + out.RunDrawRight = int(in.Int()) + case "ReadOptionLeft": + out.ReadOptionLeft = int(in.Int()) + case "ReadOptionRight": + out.ReadOptionRight = int(in.Int()) + case "SpeedOptionLeft": + out.SpeedOptionLeft = int(in.Int()) + case "SpeedOptionRight": + out.SpeedOptionRight = int(in.Int()) + case "InvertedOptionLeft": + out.InvertedOptionLeft = int(in.Int()) + case "InvertedOptionRight": + out.InvertedOptionRight = int(in.Int()) + case "TripleOptionLeft": + out.TripleOptionLeft = int(in.Int()) + case "TripleOptionRight": + out.TripleOptionRight = int(in.Int()) + case "PassQuick": + out.PassQuick = int(in.Int()) + case "PassShort": + out.PassShort = int(in.Int()) + case "PassLong": + out.PassLong = int(in.Int()) + case "PassDeep": + out.PassDeep = int(in.Int()) + case "PassScreen": + out.PassScreen = int(in.Int()) + case "PassPAShort": + out.PassPAShort = int(in.Int()) + case "PassPAMedium": + out.PassPAMedium = int(in.Int()) + case "PassPALong": + out.PassPALong = int(in.Int()) + case "PassPADeep": + out.PassPADeep = int(in.Int()) + case "LeftVsRight": + out.LeftVsRight = int(in.Int()) + case "ChoiceOutside": + out.ChoiceOutside = int(in.Int()) + case "ChoiceInside": + out.ChoiceInside = int(in.Int()) + case "ChoicePower": + out.ChoicePower = int(in.Int()) + case "PeekOutside": + out.PeekOutside = int(in.Int()) + case "PeekInside": + out.PeekInside = int(in.Int()) + case "PeekPower": + out.PeekPower = int(in.Int()) + case "TargetingWR1": + out.TargetingWR1 = int(in.Int()) + case "TargetDepthWR1": + out.TargetDepthWR1 = string(in.String()) + case "TargetingWR2": + out.TargetingWR2 = int(in.Int()) + case "TargetDepthWR2": + out.TargetDepthWR2 = string(in.String()) + case "TargetingWR3": + out.TargetingWR3 = int(in.Int()) + case "TargetDepthWR3": + out.TargetDepthWR3 = string(in.String()) + case "TargetingWR4": + out.TargetingWR4 = int(in.Int()) + case "TargetDepthWR4": + out.TargetDepthWR4 = string(in.String()) + case "TargetingWR5": + out.TargetingWR5 = int(in.Int()) + case "TargetDepthWR5": + out.TargetDepthWR5 = string(in.String()) + case "TargetingTE1": + out.TargetingTE1 = int(in.Int()) + case "TargetDepthTE1": + out.TargetDepthTE1 = string(in.String()) + case "TargetingTE2": + out.TargetingTE2 = int(in.Int()) + case "TargetDepthTE2": + out.TargetDepthTE2 = string(in.String()) + case "TargetingTE3": + out.TargetingTE3 = int(in.Int()) + case "TargetDepthTE3": + out.TargetDepthTE3 = string(in.String()) + case "TargetingRB1": + out.TargetingRB1 = int(in.Int()) + case "TargetDepthRB1": + out.TargetDepthRB1 = string(in.String()) + case "TargetingRB2": + out.TargetingRB2 = int(in.Int()) + case "TargetDepthRB2": + out.TargetDepthRB2 = string(in.String()) + case "TargetingFB1": + out.TargetingFB1 = int(in.Int()) + case "TargetDepthFB1": + out.TargetDepthFB1 = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out *jwriter.Writer, in structs.CollegeGameplan) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"OffRunToPassRatio\":" + out.RawString(prefix) + out.Int(int(in.OffRunToPassRatio)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"BlitzSafeties\":" + out.RawString(prefix) + out.Bool(bool(in.BlitzSafeties)) + } + { + const prefix string = ",\"BlitzCorners\":" + out.RawString(prefix) + out.Bool(bool(in.BlitzCorners)) + } + { + const prefix string = ",\"LinebackerCoverage\":" + out.RawString(prefix) + out.String(string(in.LinebackerCoverage)) + } + { + const prefix string = ",\"CornersCoverage\":" + out.RawString(prefix) + out.String(string(in.CornersCoverage)) + } + { + const prefix string = ",\"SafetiesCoverage\":" + out.RawString(prefix) + out.String(string(in.SafetiesCoverage)) + } + { + const prefix string = ",\"DiveFocus\":" + out.RawString(prefix) + out.Int(int(in.DiveFocus)) + } + { + const prefix string = ",\"PitchFocus\":" + out.RawString(prefix) + out.Int(int(in.PitchFocus)) + } + { + const prefix string = ",\"PrimaryHB\":" + out.RawString(prefix) + out.Int(int(in.PrimaryHB)) + } + { + const prefix string = ",\"MaximumFGDistance\":" + out.RawString(prefix) + out.Int(int(in.MaximumFGDistance)) + } + { + const prefix string = ",\"GoFor4AndShort\":" + out.RawString(prefix) + out.Int(int(in.GoFor4AndShort)) + } + { + const prefix string = ",\"GoFor4AndLong\":" + out.RawString(prefix) + out.Int(int(in.GoFor4AndLong)) + } + { + const prefix string = ",\"HasSchemePenalty\":" + out.RawString(prefix) + out.Bool(bool(in.HasSchemePenalty)) + } + { + const prefix string = ",\"OffenseSchemePenalty\":" + out.RawString(prefix) + out.Uint(uint(in.OffenseSchemePenalty)) + } + { + const prefix string = ",\"DefenseSchemePenalty\":" + out.RawString(prefix) + out.Uint(uint(in.DefenseSchemePenalty)) + } + { + const prefix string = ",\"DefaultOffense\":" + out.RawString(prefix) + out.Bool(bool(in.DefaultOffense)) + } + { + const prefix string = ",\"DefaultDefense\":" + out.RawString(prefix) + out.Bool(bool(in.DefaultDefense)) + } + { + const prefix string = ",\"PreviousWeekBye\":" + out.RawString(prefix) + out.Bool(bool(in.PreviousWeekBye)) + } + { + const prefix string = ",\"FocusPlays\":" + out.RawString(prefix) + out.String(string(in.FocusPlays)) + } + { + const prefix string = ",\"DoubleTeam\":" + out.RawString(prefix) + out.Int(int(in.DoubleTeam)) + } + { + const prefix string = ",\"DefFormation1\":" + out.RawString(prefix) + out.String(string(in.DefFormation1)) + } + { + const prefix string = ",\"DefFormation1RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation1RunToPass)) + } + { + const prefix string = ",\"DefFormation1BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation1BlitzWeight)) + } + { + const prefix string = ",\"DefFormation1BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation1BlitzAggression)) + } + { + const prefix string = ",\"DefFormation2\":" + out.RawString(prefix) + out.String(string(in.DefFormation2)) + } + { + const prefix string = ",\"DefFormation2RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation2RunToPass)) + } + { + const prefix string = ",\"DefFormation2BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation2BlitzWeight)) + } + { + const prefix string = ",\"DefFormation2BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation2BlitzAggression)) + } + { + const prefix string = ",\"DefFormation3\":" + out.RawString(prefix) + out.String(string(in.DefFormation3)) + } + { + const prefix string = ",\"DefFormation3RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation3RunToPass)) + } + { + const prefix string = ",\"DefFormation3BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation3BlitzWeight)) + } + { + const prefix string = ",\"DefFormation3BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation3BlitzAggression)) + } + { + const prefix string = ",\"DefFormation4\":" + out.RawString(prefix) + out.String(string(in.DefFormation4)) + } + { + const prefix string = ",\"DefFormation4RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation4RunToPass)) + } + { + const prefix string = ",\"DefFormation4BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation4BlitzWeight)) + } + { + const prefix string = ",\"DefFormation4BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation4BlitzAggression)) + } + { + const prefix string = ",\"DefFormation5\":" + out.RawString(prefix) + out.String(string(in.DefFormation5)) + } + { + const prefix string = ",\"DefFormation5RunToPass\":" + out.RawString(prefix) + out.Int(int(in.DefFormation5RunToPass)) + } + { + const prefix string = ",\"DefFormation5BlitzWeight\":" + out.RawString(prefix) + out.Int(int(in.DefFormation5BlitzWeight)) + } + { + const prefix string = ",\"DefFormation5BlitzAggression\":" + out.RawString(prefix) + out.String(string(in.DefFormation5BlitzAggression)) + } + { + const prefix string = ",\"OffFormation1Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation1Name)) + } + { + const prefix string = ",\"OffForm1Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm1Weight)) + } + { + const prefix string = ",\"OffForm1TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm1TraditionalRun)) + } + { + const prefix string = ",\"OffForm1OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm1OptionRun)) + } + { + const prefix string = ",\"OffForm1Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm1Pass)) + } + { + const prefix string = ",\"OffForm1RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm1RPO)) + } + { + const prefix string = ",\"OffFormation2Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation2Name)) + } + { + const prefix string = ",\"OffForm2Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm2Weight)) + } + { + const prefix string = ",\"OffForm2TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm2TraditionalRun)) + } + { + const prefix string = ",\"OffForm2OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm2OptionRun)) + } + { + const prefix string = ",\"OffForm2Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm2Pass)) + } + { + const prefix string = ",\"OffForm2RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm2RPO)) + } + { + const prefix string = ",\"OffFormation3Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation3Name)) + } + { + const prefix string = ",\"OffForm3Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm3Weight)) + } + { + const prefix string = ",\"OffForm3TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm3TraditionalRun)) + } + { + const prefix string = ",\"OffForm3OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm3OptionRun)) + } + { + const prefix string = ",\"OffForm3Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm3Pass)) + } + { + const prefix string = ",\"OffForm3RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm3RPO)) + } + { + const prefix string = ",\"OffFormation4Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation4Name)) + } + { + const prefix string = ",\"OffForm4Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Weight)) + } + { + const prefix string = ",\"OffForm4TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4TraditionalRun)) + } + { + const prefix string = ",\"OffForm4OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4OptionRun)) + } + { + const prefix string = ",\"OffForm4Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Pass)) + } + { + const prefix string = ",\"OffForm4RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm4RPO)) + } + { + const prefix string = ",\"OffFormation5Name\":" + out.RawString(prefix) + out.String(string(in.OffFormation5Name)) + } + { + const prefix string = ",\"OffForm5Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm5Weight)) + } + { + const prefix string = ",\"OffForm5TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm5TraditionalRun)) + } + { + const prefix string = ",\"OffForm5OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm5OptionRun)) + } + { + const prefix string = ",\"OffForm5Pass\":" + out.RawString(prefix) + out.Int(int(in.OffForm5Pass)) + } + { + const prefix string = ",\"OffForm5RPO\":" + out.RawString(prefix) + out.Int(int(in.OffForm5RPO)) + } + { + const prefix string = ",\"RunnerDistributionQB\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionQB)) + } + { + const prefix string = ",\"RunnerDistributionRB1\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB1)) + } + { + const prefix string = ",\"RunnerDistributionRB2\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB2)) + } + { + const prefix string = ",\"RunnerDistributionRB3\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionRB3)) + } + { + const prefix string = ",\"RunnerDistributionFB1\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionFB1)) + } + { + const prefix string = ",\"RunnerDistributionFB2\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionFB2)) + } + { + const prefix string = ",\"RunnerDistributionWR\":" + out.RawString(prefix) + out.Int(int(in.RunnerDistributionWR)) + } + { + const prefix string = ",\"RunnerDistributionWRPosition\":" + out.RawString(prefix) + out.String(string(in.RunnerDistributionWRPosition)) + } + { + const prefix string = ",\"RunnerDistributionWRID\":" + out.RawString(prefix) + out.Uint(uint(in.RunnerDistributionWRID)) + } + { + const prefix string = ",\"RunOutsideLeft\":" + out.RawString(prefix) + out.Int(int(in.RunOutsideLeft)) + } + { + const prefix string = ",\"RunOutsideRight\":" + out.RawString(prefix) + out.Int(int(in.RunOutsideRight)) + } + { + const prefix string = ",\"RunInsideLeft\":" + out.RawString(prefix) + out.Int(int(in.RunInsideLeft)) + } + { + const prefix string = ",\"RunInsideRight\":" + out.RawString(prefix) + out.Int(int(in.RunInsideRight)) + } + { + const prefix string = ",\"RunPowerLeft\":" + out.RawString(prefix) + out.Int(int(in.RunPowerLeft)) + } + { + const prefix string = ",\"RunPowerRight\":" + out.RawString(prefix) + out.Int(int(in.RunPowerRight)) + } + { + const prefix string = ",\"RunDrawLeft\":" + out.RawString(prefix) + out.Int(int(in.RunDrawLeft)) + } + { + const prefix string = ",\"RunDrawRight\":" + out.RawString(prefix) + out.Int(int(in.RunDrawRight)) + } + { + const prefix string = ",\"ReadOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.ReadOptionLeft)) + } + { + const prefix string = ",\"ReadOptionRight\":" + out.RawString(prefix) + out.Int(int(in.ReadOptionRight)) + } + { + const prefix string = ",\"SpeedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.SpeedOptionLeft)) + } + { + const prefix string = ",\"SpeedOptionRight\":" + out.RawString(prefix) + out.Int(int(in.SpeedOptionRight)) + } + { + const prefix string = ",\"InvertedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionLeft)) + } + { + const prefix string = ",\"InvertedOptionRight\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionRight)) + } + { + const prefix string = ",\"TripleOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.TripleOptionLeft)) + } + { + const prefix string = ",\"TripleOptionRight\":" + out.RawString(prefix) + out.Int(int(in.TripleOptionRight)) + } + { + const prefix string = ",\"PassQuick\":" + out.RawString(prefix) + out.Int(int(in.PassQuick)) + } + { + const prefix string = ",\"PassShort\":" + out.RawString(prefix) + out.Int(int(in.PassShort)) + } + { + const prefix string = ",\"PassLong\":" + out.RawString(prefix) + out.Int(int(in.PassLong)) + } + { + const prefix string = ",\"PassDeep\":" + out.RawString(prefix) + out.Int(int(in.PassDeep)) + } + { + const prefix string = ",\"PassScreen\":" + out.RawString(prefix) + out.Int(int(in.PassScreen)) + } + { + const prefix string = ",\"PassPAShort\":" + out.RawString(prefix) + out.Int(int(in.PassPAShort)) + } + { + const prefix string = ",\"PassPAMedium\":" + out.RawString(prefix) + out.Int(int(in.PassPAMedium)) + } + { + const prefix string = ",\"PassPALong\":" + out.RawString(prefix) + out.Int(int(in.PassPALong)) + } + { + const prefix string = ",\"PassPADeep\":" + out.RawString(prefix) + out.Int(int(in.PassPADeep)) + } + { + const prefix string = ",\"LeftVsRight\":" + out.RawString(prefix) + out.Int(int(in.LeftVsRight)) + } + { + const prefix string = ",\"ChoiceOutside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceOutside)) + } + { + const prefix string = ",\"ChoiceInside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceInside)) + } + { + const prefix string = ",\"ChoicePower\":" + out.RawString(prefix) + out.Int(int(in.ChoicePower)) + } + { + const prefix string = ",\"PeekOutside\":" + out.RawString(prefix) + out.Int(int(in.PeekOutside)) + } + { + const prefix string = ",\"PeekInside\":" + out.RawString(prefix) + out.Int(int(in.PeekInside)) + } + { + const prefix string = ",\"PeekPower\":" + out.RawString(prefix) + out.Int(int(in.PeekPower)) + } + { + const prefix string = ",\"TargetingWR1\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR1)) + } + { + const prefix string = ",\"TargetDepthWR1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR1)) + } + { + const prefix string = ",\"TargetingWR2\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR2)) + } + { + const prefix string = ",\"TargetDepthWR2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR2)) + } + { + const prefix string = ",\"TargetingWR3\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR3)) + } + { + const prefix string = ",\"TargetDepthWR3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR3)) + } + { + const prefix string = ",\"TargetingWR4\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR4)) + } + { + const prefix string = ",\"TargetDepthWR4\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR4)) + } + { + const prefix string = ",\"TargetingWR5\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR5)) + } + { + const prefix string = ",\"TargetDepthWR5\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR5)) + } + { + const prefix string = ",\"TargetingTE1\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE1)) + } + { + const prefix string = ",\"TargetDepthTE1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE1)) + } + { + const prefix string = ",\"TargetingTE2\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE2)) + } + { + const prefix string = ",\"TargetDepthTE2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE2)) + } + { + const prefix string = ",\"TargetingTE3\":" + out.RawString(prefix) + out.Int(int(in.TargetingTE3)) + } + { + const prefix string = ",\"TargetDepthTE3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthTE3)) + } + { + const prefix string = ",\"TargetingRB1\":" + out.RawString(prefix) + out.Int(int(in.TargetingRB1)) + } + { + const prefix string = ",\"TargetDepthRB1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthRB1)) + } + { + const prefix string = ",\"TargetingRB2\":" + out.RawString(prefix) + out.Int(int(in.TargetingRB2)) + } + { + const prefix string = ",\"TargetDepthRB2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthRB2)) + } + { + const prefix string = ",\"TargetingFB1\":" + out.RawString(prefix) + out.Int(int(in.TargetingFB1)) + } + { + const prefix string = ",\"TargetDepthFB1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthFB1)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs27(in *jlexer.Lexer, out *structs.CollegeTeamRecords) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "PassingTDCareerHolderID": + out.PassingTDCareerHolderID = int(in.Int()) + case "PassingTDCareerHolder": + out.PassingTDCareerHolder = string(in.String()) + case "PassingTDCareerRecord": + out.PassingTDCareerRecord = int(in.Int()) + case "PassingTDGameHolderID": + out.PassingTDGameHolderID = int(in.Int()) + case "PassingTDGameHolder": + out.PassingTDGameHolder = string(in.String()) + case "PassingTDGameRecord": + out.PassingTDGameRecord = int(in.Int()) + case "PassingTDSeasonHolderID": + out.PassingTDSeasonHolderID = int(in.Int()) + case "PassingTDSeasonHolder": + out.PassingTDSeasonHolder = string(in.String()) + case "PassingTDSeasonRecord": + out.PassingTDSeasonRecord = int(in.Int()) + case "PassingYardsCareerHolderID": + out.PassingYardsCareerHolderID = int(in.Int()) + case "PassingYardsCareerHolder": + out.PassingYardsCareerHolder = string(in.String()) + case "PassingYardsCareerRecord": + out.PassingYardsCareerRecord = int(in.Int()) + case "PassingYardsGameHolderID": + out.PassingYardsGameHolderID = int(in.Int()) + case "PassingYardsGameHolder": + out.PassingYardsGameHolder = string(in.String()) + case "PassingYardsGameRecord": + out.PassingYardsGameRecord = int(in.Int()) + case "PassingYardsSeasonHolderID": + out.PassingYardsSeasonHolderID = int(in.Int()) + case "PassingYardsSeasonHolder": + out.PassingYardsSeasonHolder = string(in.String()) + case "PassingYardsSeasonRecord": + out.PassingYardsSeasonRecord = int(in.Int()) + case "RushingTDCareerHolderID": + out.RushingTDCareerHolderID = int(in.Int()) + case "RushingTDCareerHolder": + out.RushingTDCareerHolder = string(in.String()) + case "RushingTDCareerRecord": + out.RushingTDCareerRecord = int(in.Int()) + case "RushingTDGameHolderID": + out.RushingTDGameHolderID = int(in.Int()) + case "RushingTDGameHolder": + out.RushingTDGameHolder = string(in.String()) + case "RushingTDGameRecord": + out.RushingTDGameRecord = int(in.Int()) + case "RushingTDSeasonHolderID": + out.RushingTDSeasonHolderID = int(in.Int()) + case "RushingTDSeasonHolder": + out.RushingTDSeasonHolder = string(in.String()) + case "RushingTDSeasonRecord": + out.RushingTDSeasonRecord = int(in.Int()) + case "RushingYardsCareerHolderID": + out.RushingYardsCareerHolderID = int(in.Int()) + case "RushingYardsCareerHolder": + out.RushingYardsCareerHolder = string(in.String()) + case "RushingYardsCareerRecord": + out.RushingYardsCareerRecord = int(in.Int()) + case "RushingYardsGameHolderID": + out.RushingYardsGameHolderID = int(in.Int()) + case "RushingYardsGameHolder": + out.RushingYardsGameHolder = string(in.String()) + case "RushingYardsGameRecord": + out.RushingYardsGameRecord = int(in.Int()) + case "RushingYardsSeasonHolderID": + out.RushingYardsSeasonHolderID = int(in.Int()) + case "RushingYardsSeasonHolder": + out.RushingYardsSeasonHolder = string(in.String()) + case "RushingYardsSeasonRecord": + out.RushingYardsSeasonRecord = int(in.Int()) + case "ReceivingTDCareerHolderID": + out.ReceivingTDCareerHolderID = int(in.Int()) + case "ReceivingTDCareerHolder": + out.ReceivingTDCareerHolder = string(in.String()) + case "ReceivingTDCareerRecord": + out.ReceivingTDCareerRecord = int(in.Int()) + case "ReceivingTDGameHolderID": + out.ReceivingTDGameHolderID = int(in.Int()) + case "ReceivingTDGameHolder": + out.ReceivingTDGameHolder = string(in.String()) + case "ReceivingTDGameRecord": + out.ReceivingTDGameRecord = int(in.Int()) + case "ReceivingTDSeasonHolderID": + out.ReceivingTDSeasonHolderID = int(in.Int()) + case "ReceivingTDSeasonHolder": + out.ReceivingTDSeasonHolder = string(in.String()) + case "ReceivingTDSeasonRecord": + out.ReceivingTDSeasonRecord = int(in.Int()) + case "ReceivingYardsCareerHolderID": + out.ReceivingYardsCareerHolderID = int(in.Int()) + case "ReceivingYardsCareerHolder": + out.ReceivingYardsCareerHolder = string(in.String()) + case "ReceivingYardsCareerRecord": + out.ReceivingYardsCareerRecord = int(in.Int()) + case "ReceivingYardsGameHolderID": + out.ReceivingYardsGameHolderID = int(in.Int()) + case "ReceivingYardsGameHolder": + out.ReceivingYardsGameHolder = string(in.String()) + case "ReceivingYardsGameRecord": + out.ReceivingYardsGameRecord = int(in.Int()) + case "ReceivingYardsSeasonHolderID": + out.ReceivingYardsSeasonHolderID = int(in.Int()) + case "ReceivingYardsSeasonHolder": + out.ReceivingYardsSeasonHolder = string(in.String()) + case "ReceivingYardsSeasonRecord": + out.ReceivingYardsSeasonRecord = int(in.Int()) + case "ReceptionsCareerHolderID": + out.ReceptionsCareerHolderID = int(in.Int()) + case "ReceptionsCareerHolder": + out.ReceptionsCareerHolder = string(in.String()) + case "ReceptionsCareerRecord": + out.ReceptionsCareerRecord = int(in.Int()) + case "ReceptionsGameHolderID": + out.ReceptionsGameHolderID = int(in.Int()) + case "ReceptionsGameHolder": + out.ReceptionsGameHolder = string(in.String()) + case "ReceptionsGameRecord": + out.ReceptionsGameRecord = int(in.Int()) + case "ReceptionsSeasonHolderID": + out.ReceptionsSeasonHolderID = int(in.Int()) + case "ReceptionsSeasonHolder": + out.ReceptionsSeasonHolder = string(in.String()) + case "ReceptionsSeasonRecord": + out.ReceptionsSeasonRecord = int(in.Int()) + case "InterceptionsCareerHolderID": + out.InterceptionsCareerHolderID = int(in.Int()) + case "InterceptionsCareerHolder": + out.InterceptionsCareerHolder = string(in.String()) + case "InterceptionsCareerRecord": + out.InterceptionsCareerRecord = int(in.Int()) + case "InterceptionsGameHolderID": + out.InterceptionsGameHolderID = int(in.Int()) + case "InterceptionsGameHolder": + out.InterceptionsGameHolder = string(in.String()) + case "InterceptionsGameRecord": + out.InterceptionsGameRecord = int(in.Int()) + case "InterceptionsSeasonHolderID": + out.InterceptionsSeasonHolderID = int(in.Int()) + case "InterceptionsSeasonHolder": + out.InterceptionsSeasonHolder = string(in.String()) + case "InterceptionsSeasonRecord": + out.InterceptionsSeasonRecord = int(in.Int()) + case "SacksCareerHolderID": + out.SacksCareerHolderID = int(in.Int()) + case "SacksCareerHolder": + out.SacksCareerHolder = string(in.String()) + case "SacksCareerRecord": + out.SacksCareerRecord = int(in.Int()) + case "SacksGameHolderID": + out.SacksGameHolderID = int(in.Int()) + case "SacksGameHolder": + out.SacksGameHolder = string(in.String()) + case "SacksGameRecord": + out.SacksGameRecord = int(in.Int()) + case "SacksSeasonHolderID": + out.SacksSeasonHolderID = int(in.Int()) + case "SacksSeasonHolder": + out.SacksSeasonHolder = string(in.String()) + case "SacksSeasonRecord": + out.SacksSeasonRecord = int(in.Int()) + case "TacklesCareerHolderID": + out.TacklesCareerHolderID = int(in.Int()) + case "TacklesCareerHolder": + out.TacklesCareerHolder = string(in.String()) + case "TacklesCareerRecord": + out.TacklesCareerRecord = int(in.Int()) + case "TacklesGameHolderID": + out.TacklesGameHolderID = int(in.Int()) + case "TacklesGameHolder": + out.TacklesGameHolder = string(in.String()) + case "TacklesGameRecord": + out.TacklesGameRecord = int(in.Int()) + case "TacklesSeasonHolderID": + out.TacklesSeasonHolderID = int(in.Int()) + case "TacklesSeasonHolder": + out.TacklesSeasonHolder = string(in.String()) + case "TacklesSeasonRecord": + out.TacklesSeasonRecord = int(in.Int()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs27(out *jwriter.Writer, in structs.CollegeTeamRecords) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"PassingTDCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingTDCareerHolderID)) + } + { + const prefix string = ",\"PassingTDCareerHolder\":" + out.RawString(prefix) + out.String(string(in.PassingTDCareerHolder)) + } + { + const prefix string = ",\"PassingTDCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingTDCareerRecord)) + } + { + const prefix string = ",\"PassingTDGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingTDGameHolderID)) + } + { + const prefix string = ",\"PassingTDGameHolder\":" + out.RawString(prefix) + out.String(string(in.PassingTDGameHolder)) + } + { + const prefix string = ",\"PassingTDGameRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingTDGameRecord)) + } + { + const prefix string = ",\"PassingTDSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingTDSeasonHolderID)) + } + { + const prefix string = ",\"PassingTDSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.PassingTDSeasonHolder)) + } + { + const prefix string = ",\"PassingTDSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingTDSeasonRecord)) + } + { + const prefix string = ",\"PassingYardsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsCareerHolderID)) + } + { + const prefix string = ",\"PassingYardsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.PassingYardsCareerHolder)) + } + { + const prefix string = ",\"PassingYardsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsCareerRecord)) + } + { + const prefix string = ",\"PassingYardsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsGameHolderID)) + } + { + const prefix string = ",\"PassingYardsGameHolder\":" + out.RawString(prefix) + out.String(string(in.PassingYardsGameHolder)) + } + { + const prefix string = ",\"PassingYardsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsGameRecord)) + } + { + const prefix string = ",\"PassingYardsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsSeasonHolderID)) + } + { + const prefix string = ",\"PassingYardsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.PassingYardsSeasonHolder)) + } + { + const prefix string = ",\"PassingYardsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsSeasonRecord)) + } + { + const prefix string = ",\"RushingTDCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingTDCareerHolderID)) + } + { + const prefix string = ",\"RushingTDCareerHolder\":" + out.RawString(prefix) + out.String(string(in.RushingTDCareerHolder)) + } + { + const prefix string = ",\"RushingTDCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingTDCareerRecord)) + } + { + const prefix string = ",\"RushingTDGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingTDGameHolderID)) + } + { + const prefix string = ",\"RushingTDGameHolder\":" + out.RawString(prefix) + out.String(string(in.RushingTDGameHolder)) + } + { + const prefix string = ",\"RushingTDGameRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingTDGameRecord)) + } + { + const prefix string = ",\"RushingTDSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingTDSeasonHolderID)) + } + { + const prefix string = ",\"RushingTDSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.RushingTDSeasonHolder)) + } + { + const prefix string = ",\"RushingTDSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingTDSeasonRecord)) + } + { + const prefix string = ",\"RushingYardsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsCareerHolderID)) + } + { + const prefix string = ",\"RushingYardsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.RushingYardsCareerHolder)) + } + { + const prefix string = ",\"RushingYardsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsCareerRecord)) + } + { + const prefix string = ",\"RushingYardsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsGameHolderID)) + } + { + const prefix string = ",\"RushingYardsGameHolder\":" + out.RawString(prefix) + out.String(string(in.RushingYardsGameHolder)) + } + { + const prefix string = ",\"RushingYardsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsGameRecord)) + } + { + const prefix string = ",\"RushingYardsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsSeasonHolderID)) + } + { + const prefix string = ",\"RushingYardsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.RushingYardsSeasonHolder)) + } + { + const prefix string = ",\"RushingYardsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsSeasonRecord)) + } + { + const prefix string = ",\"ReceivingTDCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDCareerHolderID)) + } + { + const prefix string = ",\"ReceivingTDCareerHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingTDCareerHolder)) + } + { + const prefix string = ",\"ReceivingTDCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDCareerRecord)) + } + { + const prefix string = ",\"ReceivingTDGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDGameHolderID)) + } + { + const prefix string = ",\"ReceivingTDGameHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingTDGameHolder)) + } + { + const prefix string = ",\"ReceivingTDGameRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDGameRecord)) + } + { + const prefix string = ",\"ReceivingTDSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDSeasonHolderID)) + } + { + const prefix string = ",\"ReceivingTDSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingTDSeasonHolder)) + } + { + const prefix string = ",\"ReceivingTDSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTDSeasonRecord)) + } + { + const prefix string = ",\"ReceivingYardsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsCareerHolderID)) + } + { + const prefix string = ",\"ReceivingYardsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingYardsCareerHolder)) + } + { + const prefix string = ",\"ReceivingYardsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsCareerRecord)) + } + { + const prefix string = ",\"ReceivingYardsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsGameHolderID)) + } + { + const prefix string = ",\"ReceivingYardsGameHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingYardsGameHolder)) + } + { + const prefix string = ",\"ReceivingYardsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsGameRecord)) + } + { + const prefix string = ",\"ReceivingYardsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsSeasonHolderID)) + } + { + const prefix string = ",\"ReceivingYardsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.ReceivingYardsSeasonHolder)) + } + { + const prefix string = ",\"ReceivingYardsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYardsSeasonRecord)) + } + { + const prefix string = ",\"ReceptionsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsCareerHolderID)) + } + { + const prefix string = ",\"ReceptionsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.ReceptionsCareerHolder)) + } + { + const prefix string = ",\"ReceptionsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsCareerRecord)) + } + { + const prefix string = ",\"ReceptionsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsGameHolderID)) + } + { + const prefix string = ",\"ReceptionsGameHolder\":" + out.RawString(prefix) + out.String(string(in.ReceptionsGameHolder)) + } + { + const prefix string = ",\"ReceptionsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsGameRecord)) + } + { + const prefix string = ",\"ReceptionsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsSeasonHolderID)) + } + { + const prefix string = ",\"ReceptionsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.ReceptionsSeasonHolder)) + } + { + const prefix string = ",\"ReceptionsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.ReceptionsSeasonRecord)) + } + { + const prefix string = ",\"InterceptionsCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCareerHolderID)) + } + { + const prefix string = ",\"InterceptionsCareerHolder\":" + out.RawString(prefix) + out.String(string(in.InterceptionsCareerHolder)) + } + { + const prefix string = ",\"InterceptionsCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsCareerRecord)) + } + { + const prefix string = ",\"InterceptionsGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsGameHolderID)) + } + { + const prefix string = ",\"InterceptionsGameHolder\":" + out.RawString(prefix) + out.String(string(in.InterceptionsGameHolder)) + } + { + const prefix string = ",\"InterceptionsGameRecord\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsGameRecord)) + } + { + const prefix string = ",\"InterceptionsSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsSeasonHolderID)) + } + { + const prefix string = ",\"InterceptionsSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.InterceptionsSeasonHolder)) + } + { + const prefix string = ",\"InterceptionsSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.InterceptionsSeasonRecord)) + } + { + const prefix string = ",\"SacksCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.SacksCareerHolderID)) + } + { + const prefix string = ",\"SacksCareerHolder\":" + out.RawString(prefix) + out.String(string(in.SacksCareerHolder)) + } + { + const prefix string = ",\"SacksCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.SacksCareerRecord)) + } + { + const prefix string = ",\"SacksGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.SacksGameHolderID)) + } + { + const prefix string = ",\"SacksGameHolder\":" + out.RawString(prefix) + out.String(string(in.SacksGameHolder)) + } + { + const prefix string = ",\"SacksGameRecord\":" + out.RawString(prefix) + out.Int(int(in.SacksGameRecord)) + } + { + const prefix string = ",\"SacksSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.SacksSeasonHolderID)) + } + { + const prefix string = ",\"SacksSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.SacksSeasonHolder)) + } + { + const prefix string = ",\"SacksSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.SacksSeasonRecord)) + } + { + const prefix string = ",\"TacklesCareerHolderID\":" + out.RawString(prefix) + out.Int(int(in.TacklesCareerHolderID)) + } + { + const prefix string = ",\"TacklesCareerHolder\":" + out.RawString(prefix) + out.String(string(in.TacklesCareerHolder)) + } + { + const prefix string = ",\"TacklesCareerRecord\":" + out.RawString(prefix) + out.Int(int(in.TacklesCareerRecord)) + } + { + const prefix string = ",\"TacklesGameHolderID\":" + out.RawString(prefix) + out.Int(int(in.TacklesGameHolderID)) + } + { + const prefix string = ",\"TacklesGameHolder\":" + out.RawString(prefix) + out.String(string(in.TacklesGameHolder)) + } + { + const prefix string = ",\"TacklesGameRecord\":" + out.RawString(prefix) + out.Int(int(in.TacklesGameRecord)) + } + { + const prefix string = ",\"TacklesSeasonHolderID\":" + out.RawString(prefix) + out.Int(int(in.TacklesSeasonHolderID)) + } + { + const prefix string = ",\"TacklesSeasonHolder\":" + out.RawString(prefix) + out.String(string(in.TacklesSeasonHolder)) + } + { + const prefix string = ",\"TacklesSeasonRecord\":" + out.RawString(prefix) + out.Int(int(in.TacklesSeasonRecord)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs26(in *jlexer.Lexer, out *structs.CollegeTeamSeasonStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = int(in.Int()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "TotalOffensiveYards": + out.TotalOffensiveYards = int(in.Int()) + case "TotalYardsAllowed": + out.TotalYardsAllowed = int(in.Int()) + case "Fumbles": + out.Fumbles = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "Turnovers": + out.Turnovers = int(in.Int()) + case "PointsScored": + out.PointsScored = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "TwoPointTries": + out.TwoPointTries = int(in.Int()) + case "TwoPointSucceed": + out.TwoPointSucceed = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassingAttempts": + out.PassingAttempts = int(in.Int()) + case "PassingCompletions": + out.PassingCompletions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "PassingTouchdowns": + out.PassingTouchdowns = int(in.Int()) + case "PassingInterceptions": + out.PassingInterceptions = int(in.Int()) + case "QBSacks": + out.QBSacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingYardsPerAttempt": + out.RushingYardsPerAttempt = float64(in.Float64()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "RushingTouchdowns": + out.RushingTouchdowns = int(in.Int()) + case "RushingFumbles": + out.RushingFumbles = int(in.Int()) + case "ReceivingTargets": + out.ReceivingTargets = int(in.Int()) + case "ReceivingCatches": + out.ReceivingCatches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "YardsPerCatch": + out.YardsPerCatch = float64(in.Float64()) + case "ReceivingTouchdowns": + out.ReceivingTouchdowns = int(in.Int()) + case "ReceivingFumbles": + out.ReceivingFumbles = int(in.Int()) + case "PassingYardsAllowed": + out.PassingYardsAllowed = int(in.Int()) + case "PassingTDsAllowed": + out.PassingTDsAllowed = int(in.Int()) + case "PassingCompletionsAllowed": + out.PassingCompletionsAllowed = int(in.Int()) + case "RushingYardsAllowed": + out.RushingYardsAllowed = int(in.Int()) + case "RushingTDsAllowed": + out.RushingTDsAllowed = int(in.Int()) + case "RushingYardsPerAttemptAllowed": + out.RushingYardsPerAttemptAllowed = float64(in.Float64()) + case "SoloTackles": + out.SoloTackles = int(in.Int()) + case "AssistedTackles": + out.AssistedTackles = int(in.Int()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "DefensiveSacks": + out.DefensiveSacks = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "FumblesRecovered": + out.FumblesRecovered = int(in.Int()) + case "DefensiveInterceptions": + out.DefensiveInterceptions = int(in.Int()) + case "TurnoverYards": + out.TurnoverYards = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "ExtraPointPercentage": + out.ExtraPointPercentage = float64(in.Float64()) + case "FieldGoalsMade": + out.FieldGoalsMade = int(in.Int()) + case "FieldGoalsAttempted": + out.FieldGoalsAttempted = int(in.Int()) + case "FieldGoalsPercentage": + out.FieldGoalsPercentage = float64(in.Float64()) + case "LongestFieldGoal": + out.LongestFieldGoal = int(in.Int()) + case "KickoffTBs": + out.KickoffTBs = int(in.Int()) + case "PuntTBs": + out.PuntTBs = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "PuntYards": + out.PuntYards = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "PuntAverage": + out.PuntAverage = float64(in.Float64()) + case "Inside20YardLine": + out.Inside20YardLine = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "OffensivePenalties": + out.OffensivePenalties = int(in.Int()) + case "DefensivePenalties": + out.DefensivePenalties = int(in.Int()) + case "OffPenaltyYards": + out.OffPenaltyYards = int(in.Int()) + case "DefPenaltyYards": + out.DefPenaltyYards = int(in.Int()) + case "Score1Q": + out.Score1Q = int(in.Int()) + case "Score2Q": + out.Score2Q = int(in.Int()) + case "Score3Q": + out.Score3Q = int(in.Int()) + case "Score4Q": + out.Score4Q = int(in.Int()) + case "Score5Q": + out.Score5Q = int(in.Int()) + case "Score6Q": + out.Score6Q = int(in.Int()) + case "Score7Q": + out.Score7Q = int(in.Int()) + case "ScoreOT": + out.ScoreOT = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "OffensiveSnaps": + out.OffensiveSnaps = uint16(in.Uint16()) + case "DefensiveSnaps": + out.DefensiveSnaps = uint16(in.Uint16()) + case "SpecialTeamSnaps": + out.SpecialTeamSnaps = uint16(in.Uint16()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.DeletedAt).UnmarshalJSON(data)) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs26(out *jwriter.Writer, in structs.CollegeTeamSeasonStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Year\":" + out.RawString(prefix) + out.Int(int(in.Year)) + } + { + const prefix string = ",\"GamesPlayed\":" + out.RawString(prefix) + out.Int(int(in.GamesPlayed)) + } + { + const prefix string = ",\"TotalOffensiveYards\":" + out.RawString(prefix) + out.Int(int(in.TotalOffensiveYards)) + } + { + const prefix string = ",\"TotalYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.TotalYardsAllowed)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int(int(in.Fumbles)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"Turnovers\":" + out.RawString(prefix) + out.Int(int(in.Turnovers)) + } + { + const prefix string = ",\"PointsScored\":" + out.RawString(prefix) + out.Int(int(in.PointsScored)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"TwoPointTries\":" + out.RawString(prefix) + out.Int(int(in.TwoPointTries)) + } + { + const prefix string = ",\"TwoPointSucceed\":" + out.RawString(prefix) + out.Int(int(in.TwoPointSucceed)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassingAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassingAttempts)) + } + { + const prefix string = ",\"PassingCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"PassingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.PassingTouchdowns)) + } + { + const prefix string = ",\"PassingInterceptions\":" + out.RawString(prefix) + out.Int(int(in.PassingInterceptions)) + } + { + const prefix string = ",\"QBSacks\":" + out.RawString(prefix) + out.Int(int(in.QBSacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingYardsPerAttempt\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttempt)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"RushingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.RushingTouchdowns)) + } + { + const prefix string = ",\"RushingFumbles\":" + out.RawString(prefix) + out.Int(int(in.RushingFumbles)) + } + { + const prefix string = ",\"ReceivingTargets\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTargets)) + } + { + const prefix string = ",\"ReceivingCatches\":" + out.RawString(prefix) + out.Int(int(in.ReceivingCatches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"YardsPerCatch\":" + out.RawString(prefix) + out.Float64(float64(in.YardsPerCatch)) + } + { + const prefix string = ",\"ReceivingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTouchdowns)) + } + { + const prefix string = ",\"ReceivingFumbles\":" + out.RawString(prefix) + out.Int(int(in.ReceivingFumbles)) + } + { + const prefix string = ",\"PassingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsAllowed)) + } + { + const prefix string = ",\"PassingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingTDsAllowed)) + } + { + const prefix string = ",\"PassingCompletionsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletionsAllowed)) + } + { + const prefix string = ",\"RushingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsAllowed)) + } + { + const prefix string = ",\"RushingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingTDsAllowed)) + } + { + const prefix string = ",\"RushingYardsPerAttemptAllowed\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttemptAllowed)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Int(int(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Int(int(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"DefensiveSacks\":" + out.RawString(prefix) + out.Float64(float64(in.DefensiveSacks)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"FumblesRecovered\":" + out.RawString(prefix) + out.Int(int(in.FumblesRecovered)) + } + { + const prefix string = ",\"DefensiveInterceptions\":" + out.RawString(prefix) + out.Int(int(in.DefensiveInterceptions)) + } + { + const prefix string = ",\"TurnoverYards\":" + out.RawString(prefix) + out.Int(int(in.TurnoverYards)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"ExtraPointPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.ExtraPointPercentage)) + } + { + const prefix string = ",\"FieldGoalsMade\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsMade)) + } + { + const prefix string = ",\"FieldGoalsAttempted\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsAttempted)) + } + { + const prefix string = ",\"FieldGoalsPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.FieldGoalsPercentage)) + } + { + const prefix string = ",\"LongestFieldGoal\":" + out.RawString(prefix) + out.Int(int(in.LongestFieldGoal)) + } + { + const prefix string = ",\"KickoffTBs\":" + out.RawString(prefix) + out.Int(int(in.KickoffTBs)) + } + { + const prefix string = ",\"PuntTBs\":" + out.RawString(prefix) + out.Int(int(in.PuntTBs)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"PuntYards\":" + out.RawString(prefix) + out.Int(int(in.PuntYards)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"PuntAverage\":" + out.RawString(prefix) + out.Float64(float64(in.PuntAverage)) + } + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"OffensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.OffensivePenalties)) + } + { + const prefix string = ",\"DefensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.DefensivePenalties)) + } + { + const prefix string = ",\"OffPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.OffPenaltyYards)) + } + { + const prefix string = ",\"DefPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.DefPenaltyYards)) + } + { + const prefix string = ",\"Score1Q\":" + out.RawString(prefix) + out.Int(int(in.Score1Q)) + } + { + const prefix string = ",\"Score2Q\":" + out.RawString(prefix) + out.Int(int(in.Score2Q)) + } + { + const prefix string = ",\"Score3Q\":" + out.RawString(prefix) + out.Int(int(in.Score3Q)) + } + { + const prefix string = ",\"Score4Q\":" + out.RawString(prefix) + out.Int(int(in.Score4Q)) + } + { + const prefix string = ",\"Score5Q\":" + out.RawString(prefix) + out.Int(int(in.Score5Q)) + } + { + const prefix string = ",\"Score6Q\":" + out.RawString(prefix) + out.Int(int(in.Score6Q)) + } + { + const prefix string = ",\"Score7Q\":" + out.RawString(prefix) + out.Int(int(in.Score7Q)) + } + { + const prefix string = ",\"ScoreOT\":" + out.RawString(prefix) + out.Int(int(in.ScoreOT)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"OffensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + out.Raw((in.DeletedAt).MarshalJSON()) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in *jlexer.Lexer, out *structs.CollegeTeamStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "GameID": + out.GameID = int(in.Int()) + case "WeekID": + out.WeekID = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "PointsScored": + out.PointsScored = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "TwoPointTries": + out.TwoPointTries = int(in.Int()) + case "TwoPointSucceed": + out.TwoPointSucceed = int(in.Int()) + case "PassingYards": + out.PassingYards = int(in.Int()) + case "PassingAttempts": + out.PassingAttempts = int(in.Int()) + case "PassingCompletions": + out.PassingCompletions = int(in.Int()) + case "LongestPass": + out.LongestPass = int(in.Int()) + case "PassingTouchdowns": + out.PassingTouchdowns = int(in.Int()) + case "PassingInterceptions": + out.PassingInterceptions = int(in.Int()) + case "QBRating": + out.QBRating = int(in.Int()) + case "QBSacks": + out.QBSacks = int(in.Int()) + case "RushAttempts": + out.RushAttempts = int(in.Int()) + case "RushingYards": + out.RushingYards = int(in.Int()) + case "RushingYardsPerAttempt": + out.RushingYardsPerAttempt = float64(in.Float64()) + case "LongestRush": + out.LongestRush = int(in.Int()) + case "RushingTouchdowns": + out.RushingTouchdowns = int(in.Int()) + case "RushingFumbles": + out.RushingFumbles = int(in.Int()) + case "ReceivingTargets": + out.ReceivingTargets = int(in.Int()) + case "ReceivingCatches": + out.ReceivingCatches = int(in.Int()) + case "ReceivingYards": + out.ReceivingYards = int(in.Int()) + case "YardsPerCatch": + out.YardsPerCatch = float64(in.Float64()) + case "ReceivingTouchdowns": + out.ReceivingTouchdowns = int(in.Int()) + case "ReceivingFumbles": + out.ReceivingFumbles = int(in.Int()) + case "PassingYardsAllowed": + out.PassingYardsAllowed = int(in.Int()) + case "PassingTDsAllowed": + out.PassingTDsAllowed = int(in.Int()) + case "PassingCompletionsAllowed": + out.PassingCompletionsAllowed = int(in.Int()) + case "RushingYardsAllowed": + out.RushingYardsAllowed = int(in.Int()) + case "RushingTDsAllowed": + out.RushingTDsAllowed = int(in.Int()) + case "RushingYardsPerAttemptAllowed": + out.RushingYardsPerAttemptAllowed = float64(in.Float64()) + case "SoloTackles": + out.SoloTackles = int(in.Int()) + case "AssistedTackles": + out.AssistedTackles = int(in.Int()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "DefensiveSacks": + out.DefensiveSacks = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int(in.Int()) + case "FumblesRecovered": + out.FumblesRecovered = int(in.Int()) + case "DefensiveInterceptions": + out.DefensiveInterceptions = int(in.Int()) + case "TurnoverYards": + out.TurnoverYards = int(in.Int()) + case "DefensiveTDs": + out.DefensiveTDs = int(in.Int()) + case "Safeties": + out.Safeties = int(in.Int()) + case "ExtraPointsMade": + out.ExtraPointsMade = int(in.Int()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int(in.Int()) + case "ExtraPointPercentage": + out.ExtraPointPercentage = float64(in.Float64()) + case "FieldGoalsMade": + out.FieldGoalsMade = int(in.Int()) + case "FieldGoalsAttempted": + out.FieldGoalsAttempted = int(in.Int()) + case "FieldGoalsPercentage": + out.FieldGoalsPercentage = float64(in.Float64()) + case "LongestFieldGoal": + out.LongestFieldGoal = int(in.Int()) + case "KickoffTBs": + out.KickoffTBs = int(in.Int()) + case "PuntTBs": + out.PuntTBs = int(in.Int()) + case "Punts": + out.Punts = int(in.Int()) + case "PuntYards": + out.PuntYards = int(in.Int()) + case "PuntsInside20": + out.PuntsInside20 = int(in.Int()) + case "PuntAverage": + out.PuntAverage = float64(in.Float64()) + case "Inside20YardLine": + out.Inside20YardLine = int(in.Int()) + case "KickReturnYards": + out.KickReturnYards = int(in.Int()) + case "KickReturnTDs": + out.KickReturnTDs = int(in.Int()) + case "PuntReturnYards": + out.PuntReturnYards = int(in.Int()) + case "PuntReturnTDs": + out.PuntReturnTDs = int(in.Int()) + case "OffensivePenalties": + out.OffensivePenalties = int(in.Int()) + case "DefensivePenalties": + out.DefensivePenalties = int(in.Int()) + case "OffPenaltyYards": + out.OffPenaltyYards = int(in.Int()) + case "DefPenaltyYards": + out.DefPenaltyYards = int(in.Int()) + case "Score1Q": + out.Score1Q = int(in.Int()) + case "Score2Q": + out.Score2Q = int(in.Int()) + case "Score3Q": + out.Score3Q = int(in.Int()) + case "Score4Q": + out.Score4Q = int(in.Int()) + case "Score5Q": + out.Score5Q = int(in.Int()) + case "Score6Q": + out.Score6Q = int(in.Int()) + case "Score7Q": + out.Score7Q = int(in.Int()) + case "ScoreOT": + out.ScoreOT = int(in.Int()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "OffensiveSnaps": + out.OffensiveSnaps = uint16(in.Uint16()) + case "DefensiveSnaps": + out.DefensiveSnaps = uint16(in.Uint16()) + case "SpecialTeamSnaps": + out.SpecialTeamSnaps = uint16(in.Uint16()) + case "GameType": + out.GameType = uint8(in.Uint8()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out *jwriter.Writer, in structs.CollegeTeamStats) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"GameID\":" + out.RawString(prefix) + out.Int(int(in.GameID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"OpposingTeam\":" + out.RawString(prefix) + out.String(string(in.OpposingTeam)) + } + { + const prefix string = ",\"PointsScored\":" + out.RawString(prefix) + out.Int(int(in.PointsScored)) + } + { + const prefix string = ",\"PointsAgainst\":" + out.RawString(prefix) + out.Int(int(in.PointsAgainst)) + } + { + const prefix string = ",\"TwoPointTries\":" + out.RawString(prefix) + out.Int(int(in.TwoPointTries)) + } + { + const prefix string = ",\"TwoPointSucceed\":" + out.RawString(prefix) + out.Int(int(in.TwoPointSucceed)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int(int(in.PassingYards)) + } + { + const prefix string = ",\"PassingAttempts\":" + out.RawString(prefix) + out.Int(int(in.PassingAttempts)) + } + { + const prefix string = ",\"PassingCompletions\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int(int(in.LongestPass)) + } + { + const prefix string = ",\"PassingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.PassingTouchdowns)) + } + { + const prefix string = ",\"PassingInterceptions\":" + out.RawString(prefix) + out.Int(int(in.PassingInterceptions)) + } + { + const prefix string = ",\"QBRating\":" + out.RawString(prefix) + out.Int(int(in.QBRating)) + } + { + const prefix string = ",\"QBSacks\":" + out.RawString(prefix) + out.Int(int(in.QBSacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int(int(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int(int(in.RushingYards)) + } + { + const prefix string = ",\"RushingYardsPerAttempt\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttempt)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int(int(in.LongestRush)) + } + { + const prefix string = ",\"RushingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.RushingTouchdowns)) + } + { + const prefix string = ",\"RushingFumbles\":" + out.RawString(prefix) + out.Int(int(in.RushingFumbles)) + } + { + const prefix string = ",\"ReceivingTargets\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTargets)) + } + { + const prefix string = ",\"ReceivingCatches\":" + out.RawString(prefix) + out.Int(int(in.ReceivingCatches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int(int(in.ReceivingYards)) + } + { + const prefix string = ",\"YardsPerCatch\":" + out.RawString(prefix) + out.Float64(float64(in.YardsPerCatch)) + } + { + const prefix string = ",\"ReceivingTouchdowns\":" + out.RawString(prefix) + out.Int(int(in.ReceivingTouchdowns)) + } + { + const prefix string = ",\"ReceivingFumbles\":" + out.RawString(prefix) + out.Int(int(in.ReceivingFumbles)) + } + { + const prefix string = ",\"PassingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingYardsAllowed)) + } + { + const prefix string = ",\"PassingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingTDsAllowed)) + } + { + const prefix string = ",\"PassingCompletionsAllowed\":" + out.RawString(prefix) + out.Int(int(in.PassingCompletionsAllowed)) + } + { + const prefix string = ",\"RushingYardsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingYardsAllowed)) + } + { + const prefix string = ",\"RushingTDsAllowed\":" + out.RawString(prefix) + out.Int(int(in.RushingTDsAllowed)) + } + { + const prefix string = ",\"RushingYardsPerAttemptAllowed\":" + out.RawString(prefix) + out.Float64(float64(in.RushingYardsPerAttemptAllowed)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Int(int(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Int(int(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"DefensiveSacks\":" + out.RawString(prefix) + out.Float64(float64(in.DefensiveSacks)) + } + { + const prefix string = ",\"ForcedFumbles\":" + out.RawString(prefix) + out.Int(int(in.ForcedFumbles)) + } + { + const prefix string = ",\"FumblesRecovered\":" + out.RawString(prefix) + out.Int(int(in.FumblesRecovered)) + } + { + const prefix string = ",\"DefensiveInterceptions\":" + out.RawString(prefix) + out.Int(int(in.DefensiveInterceptions)) + } + { + const prefix string = ",\"TurnoverYards\":" + out.RawString(prefix) + out.Int(int(in.TurnoverYards)) + } + { + const prefix string = ",\"DefensiveTDs\":" + out.RawString(prefix) + out.Int(int(in.DefensiveTDs)) + } + { + const prefix string = ",\"Safeties\":" + out.RawString(prefix) + out.Int(int(in.Safeties)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int(int(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"ExtraPointPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.ExtraPointPercentage)) + } + { + const prefix string = ",\"FieldGoalsMade\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsMade)) + } + { + const prefix string = ",\"FieldGoalsAttempted\":" + out.RawString(prefix) + out.Int(int(in.FieldGoalsAttempted)) + } + { + const prefix string = ",\"FieldGoalsPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.FieldGoalsPercentage)) + } + { + const prefix string = ",\"LongestFieldGoal\":" + out.RawString(prefix) + out.Int(int(in.LongestFieldGoal)) + } + { + const prefix string = ",\"KickoffTBs\":" + out.RawString(prefix) + out.Int(int(in.KickoffTBs)) + } + { + const prefix string = ",\"PuntTBs\":" + out.RawString(prefix) + out.Int(int(in.PuntTBs)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int(int(in.Punts)) + } + { + const prefix string = ",\"PuntYards\":" + out.RawString(prefix) + out.Int(int(in.PuntYards)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int(int(in.PuntsInside20)) + } + { + const prefix string = ",\"PuntAverage\":" + out.RawString(prefix) + out.Float64(float64(in.PuntAverage)) + } + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.KickReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnYards)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int(int(in.PuntReturnTDs)) + } + { + const prefix string = ",\"OffensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.OffensivePenalties)) + } + { + const prefix string = ",\"DefensivePenalties\":" + out.RawString(prefix) + out.Int(int(in.DefensivePenalties)) + } + { + const prefix string = ",\"OffPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.OffPenaltyYards)) + } + { + const prefix string = ",\"DefPenaltyYards\":" + out.RawString(prefix) + out.Int(int(in.DefPenaltyYards)) + } + { + const prefix string = ",\"Score1Q\":" + out.RawString(prefix) + out.Int(int(in.Score1Q)) + } + { + const prefix string = ",\"Score2Q\":" + out.RawString(prefix) + out.Int(int(in.Score2Q)) + } + { + const prefix string = ",\"Score3Q\":" + out.RawString(prefix) + out.Int(int(in.Score3Q)) + } + { + const prefix string = ",\"Score4Q\":" + out.RawString(prefix) + out.Int(int(in.Score4Q)) + } + { + const prefix string = ",\"Score5Q\":" + out.RawString(prefix) + out.Int(int(in.Score5Q)) + } + { + const prefix string = ",\"Score6Q\":" + out.RawString(prefix) + out.Int(int(in.Score6Q)) + } + { + const prefix string = ",\"Score7Q\":" + out.RawString(prefix) + out.Int(int(in.Score7Q)) + } + { + const prefix string = ",\"ScoreOT\":" + out.RawString(prefix) + out.Int(int(in.ScoreOT)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"OffensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in *jlexer.Lexer, out *structs.RecruitingTeamProfile) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "Team": + out.Team = string(in.String()) + case "TeamAbbreviation": + out.TeamAbbreviation = string(in.String()) + case "State": + out.State = string(in.String()) + case "ScholarshipsAvailable": + out.ScholarshipsAvailable = int(in.Int()) + case "WeeklyPoints": + out.WeeklyPoints = float64(in.Float64()) + case "SpentPoints": + out.SpentPoints = float64(in.Float64()) + case "TotalCommitments": + out.TotalCommitments = int(in.Int()) + case "RecruitClassSize": + out.RecruitClassSize = int(in.Int()) + case "PortalReputation": + out.PortalReputation = int(in.Int()) + case "BaseEfficiencyScore": + out.BaseEfficiencyScore = float64(in.Float64()) + case "RecruitingEfficiencyScore": + out.RecruitingEfficiencyScore = float64(in.Float64()) + case "PreviousOverallWinPer": + out.PreviousOverallWinPer = float64(in.Float64()) + case "PreviousConferenceWinPer": + out.PreviousConferenceWinPer = float64(in.Float64()) + case "CurrentOverallWinPer": + out.CurrentOverallWinPer = float64(in.Float64()) + case "CurrentConferenceWinPer": + out.CurrentConferenceWinPer = float64(in.Float64()) + case "ESPNScore": + out.ESPNScore = float64(in.Float64()) + case "RivalsScore": + out.RivalsScore = float64(in.Float64()) + case "Rank247Score": + out.Rank247Score = float64(in.Float64()) + case "CompositeScore": + out.CompositeScore = float64(in.Float64()) + case "ThreeStars": + out.ThreeStars = uint8(in.Uint8()) + case "FourStars": + out.FourStars = uint8(in.Uint8()) + case "FiveStars": + out.FiveStars = uint8(in.Uint8()) + case "RecruitingClassRank": + out.RecruitingClassRank = int(in.Int()) + case "CaughtCheating": + out.CaughtCheating = bool(in.Bool()) + case "IsFBS": + out.IsFBS = bool(in.Bool()) + case "IsAI": + out.IsAI = bool(in.Bool()) + case "IsUserTeam": + out.IsUserTeam = bool(in.Bool()) + case "AIBehavior": + out.AIBehavior = string(in.String()) + case "AIQuality": + out.AIQuality = string(in.String()) + case "WeeksMissed": + out.WeeksMissed = int(in.Int()) + case "BattlesWon": + out.BattlesWon = int(in.Int()) + case "BattlesLost": + out.BattlesLost = int(in.Int()) + case "AIMinThreshold": + out.AIMinThreshold = int(in.Int()) + case "AIMaxThreshold": + out.AIMaxThreshold = int(in.Int()) + case "AIStarMin": + out.AIStarMin = int(in.Int()) + case "AIStarMax": + out.AIStarMax = int(in.Int()) + case "AIAutoOfferscholarships": + out.AIAutoOfferscholarships = bool(in.Bool()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "Recruiter": + out.Recruiter = string(in.String()) + case "AcademicsAffinity": + out.AcademicsAffinity = bool(in.Bool()) + case "FrontrunnerAffinity": + out.FrontrunnerAffinity = bool(in.Bool()) + case "LargeCrowdsAffinity": + out.LargeCrowdsAffinity = bool(in.Bool()) + case "ReligionAffinity": + out.ReligionAffinity = bool(in.Bool()) + case "ServiceAffinity": + out.ServiceAffinity = bool(in.Bool()) + case "SmallSchoolAffinity": + out.SmallSchoolAffinity = bool(in.Bool()) + case "SmallTownAffinity": + out.SmallTownAffinity = bool(in.Bool()) + case "BigCityAffinity": + out.BigCityAffinity = bool(in.Bool()) + case "MediaSpotlightAffinity": + out.MediaSpotlightAffinity = bool(in.Bool()) + case "RisingStarsAffinity": + out.RisingStarsAffinity = bool(in.Bool()) + case "Recruits": + if in.IsNull() { + in.Skip() + out.Recruits = nil + } else { + in.Delim('[') + if out.Recruits == nil { + if !in.IsDelim(']') { + out.Recruits = make([]structs.RecruitPlayerProfile, 0, 0) + } else { + out.Recruits = []structs.RecruitPlayerProfile{} + } + } else { + out.Recruits = (out.Recruits)[:0] + } + for !in.IsDelim(']') { + var v63 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v63) + out.Recruits = append(out.Recruits, v63) + in.WantComma() + } + in.Delim(']') + } + case "Affinities": + if in.IsNull() { + in.Skip() + out.Affinities = nil + } else { + in.Delim('[') + if out.Affinities == nil { + if !in.IsDelim(']') { + out.Affinities = make([]structs.ProfileAffinity, 0, 0) + } else { + out.Affinities = []structs.ProfileAffinity{} + } + } else { + out.Affinities = (out.Affinities)[:0] + } + for !in.IsDelim(']') { + var v64 structs.ProfileAffinity + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in, &v64) + out.Affinities = append(out.Affinities, v64) + in.WantComma() + } + in.Delim(']') + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out *jwriter.Writer, in structs.RecruitingTeamProfile) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"TeamAbbreviation\":" + out.RawString(prefix) + out.String(string(in.TeamAbbreviation)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"ScholarshipsAvailable\":" + out.RawString(prefix) + out.Int(int(in.ScholarshipsAvailable)) + } + { + const prefix string = ",\"WeeklyPoints\":" + out.RawString(prefix) + out.Float64(float64(in.WeeklyPoints)) + } + { + const prefix string = ",\"SpentPoints\":" + out.RawString(prefix) + out.Float64(float64(in.SpentPoints)) + } + { + const prefix string = ",\"TotalCommitments\":" + out.RawString(prefix) + out.Int(int(in.TotalCommitments)) + } + { + const prefix string = ",\"RecruitClassSize\":" + out.RawString(prefix) + out.Int(int(in.RecruitClassSize)) + } + { + const prefix string = ",\"PortalReputation\":" + out.RawString(prefix) + out.Int(int(in.PortalReputation)) + } + { + const prefix string = ",\"BaseEfficiencyScore\":" + out.RawString(prefix) + out.Float64(float64(in.BaseEfficiencyScore)) + } + { + const prefix string = ",\"RecruitingEfficiencyScore\":" + out.RawString(prefix) + out.Float64(float64(in.RecruitingEfficiencyScore)) + } + { + const prefix string = ",\"PreviousOverallWinPer\":" + out.RawString(prefix) + out.Float64(float64(in.PreviousOverallWinPer)) + } + { + const prefix string = ",\"PreviousConferenceWinPer\":" + out.RawString(prefix) + out.Float64(float64(in.PreviousConferenceWinPer)) + } + { + const prefix string = ",\"CurrentOverallWinPer\":" + out.RawString(prefix) + out.Float64(float64(in.CurrentOverallWinPer)) + } + { + const prefix string = ",\"CurrentConferenceWinPer\":" + out.RawString(prefix) + out.Float64(float64(in.CurrentConferenceWinPer)) + } + { + const prefix string = ",\"ESPNScore\":" + out.RawString(prefix) + out.Float64(float64(in.ESPNScore)) + } + { + const prefix string = ",\"RivalsScore\":" + out.RawString(prefix) + out.Float64(float64(in.RivalsScore)) + } + { + const prefix string = ",\"Rank247Score\":" + out.RawString(prefix) + out.Float64(float64(in.Rank247Score)) + } + { + const prefix string = ",\"CompositeScore\":" + out.RawString(prefix) + out.Float64(float64(in.CompositeScore)) + } + { + const prefix string = ",\"ThreeStars\":" + out.RawString(prefix) + out.Uint8(uint8(in.ThreeStars)) + } + { + const prefix string = ",\"FourStars\":" + out.RawString(prefix) + out.Uint8(uint8(in.FourStars)) + } + { + const prefix string = ",\"FiveStars\":" + out.RawString(prefix) + out.Uint8(uint8(in.FiveStars)) + } + { + const prefix string = ",\"RecruitingClassRank\":" + out.RawString(prefix) + out.Int(int(in.RecruitingClassRank)) + } + { + const prefix string = ",\"CaughtCheating\":" + out.RawString(prefix) + out.Bool(bool(in.CaughtCheating)) + } + { + const prefix string = ",\"IsFBS\":" + out.RawString(prefix) + out.Bool(bool(in.IsFBS)) + } + { + const prefix string = ",\"IsAI\":" + out.RawString(prefix) + out.Bool(bool(in.IsAI)) + } + { + const prefix string = ",\"IsUserTeam\":" + out.RawString(prefix) + out.Bool(bool(in.IsUserTeam)) + } + { + const prefix string = ",\"AIBehavior\":" + out.RawString(prefix) + out.String(string(in.AIBehavior)) + } + { + const prefix string = ",\"AIQuality\":" + out.RawString(prefix) + out.String(string(in.AIQuality)) + } + { + const prefix string = ",\"WeeksMissed\":" + out.RawString(prefix) + out.Int(int(in.WeeksMissed)) + } + { + const prefix string = ",\"BattlesWon\":" + out.RawString(prefix) + out.Int(int(in.BattlesWon)) + } + { + const prefix string = ",\"BattlesLost\":" + out.RawString(prefix) + out.Int(int(in.BattlesLost)) + } + { + const prefix string = ",\"AIMinThreshold\":" + out.RawString(prefix) + out.Int(int(in.AIMinThreshold)) + } + { + const prefix string = ",\"AIMaxThreshold\":" + out.RawString(prefix) + out.Int(int(in.AIMaxThreshold)) + } + { + const prefix string = ",\"AIStarMin\":" + out.RawString(prefix) + out.Int(int(in.AIStarMin)) + } + { + const prefix string = ",\"AIStarMax\":" + out.RawString(prefix) + out.Int(int(in.AIStarMax)) + } + { + const prefix string = ",\"AIAutoOfferscholarships\":" + out.RawString(prefix) + out.Bool(bool(in.AIAutoOfferscholarships)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"Recruiter\":" + out.RawString(prefix) + out.String(string(in.Recruiter)) + } + { + const prefix string = ",\"AcademicsAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.AcademicsAffinity)) + } + { + const prefix string = ",\"FrontrunnerAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.FrontrunnerAffinity)) + } + { + const prefix string = ",\"LargeCrowdsAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.LargeCrowdsAffinity)) + } + { + const prefix string = ",\"ReligionAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.ReligionAffinity)) + } + { + const prefix string = ",\"ServiceAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.ServiceAffinity)) + } + { + const prefix string = ",\"SmallSchoolAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.SmallSchoolAffinity)) + } + { + const prefix string = ",\"SmallTownAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.SmallTownAffinity)) + } + { + const prefix string = ",\"BigCityAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.BigCityAffinity)) + } + { + const prefix string = ",\"MediaSpotlightAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.MediaSpotlightAffinity)) + } + { + const prefix string = ",\"RisingStarsAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.RisingStarsAffinity)) + } + { + const prefix string = ",\"Recruits\":" + out.RawString(prefix) + if in.Recruits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v65, v66 := range in.Recruits { + if v65 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v66) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"Affinities\":" + out.RawString(prefix) + if in.Affinities == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v67, v68 := range in.Affinities { + if v67 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out, v68) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in *jlexer.Lexer, out *structs.ProfileAffinity) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "AffinityID": + out.AffinityID = int(in.Int()) + case "ProfileID": + out.ProfileID = int(in.Int()) + case "AffinityName": + out.AffinityName = string(in.String()) + case "IsApplicable": + out.IsApplicable = bool(in.Bool()) + case "IsDynamicAffinity": + out.IsDynamicAffinity = bool(in.Bool()) + case "IsCheckedWeekly": + out.IsCheckedWeekly = bool(in.Bool()) + case "IsCheckedSeasonal": + out.IsCheckedSeasonal = bool(in.Bool()) + case "AffinityValue": + out.AffinityValue = float32(in.Float32()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out *jwriter.Writer, in structs.ProfileAffinity) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"AffinityID\":" + out.RawString(prefix[1:]) + out.Int(int(in.AffinityID)) + } + { + const prefix string = ",\"ProfileID\":" + out.RawString(prefix) + out.Int(int(in.ProfileID)) + } + { + const prefix string = ",\"AffinityName\":" + out.RawString(prefix) + out.String(string(in.AffinityName)) + } + { + const prefix string = ",\"IsApplicable\":" + out.RawString(prefix) + out.Bool(bool(in.IsApplicable)) + } + { + const prefix string = ",\"IsDynamicAffinity\":" + out.RawString(prefix) + out.Bool(bool(in.IsDynamicAffinity)) + } + { + const prefix string = ",\"IsCheckedWeekly\":" + out.RawString(prefix) + out.Bool(bool(in.IsCheckedWeekly)) + } + { + const prefix string = ",\"IsCheckedSeasonal\":" + out.RawString(prefix) + out.Bool(bool(in.IsCheckedSeasonal)) + } + { + const prefix string = ",\"AffinityValue\":" + out.RawString(prefix) + out.Float32(float32(in.AffinityValue)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in *jlexer.Lexer, out *structs.RecruitPlayerProfile) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "SeasonID": + out.SeasonID = int(in.Int()) + case "RecruitID": + out.RecruitID = int(in.Int()) + case "ProfileID": + out.ProfileID = int(in.Int()) + case "TotalPoints": + out.TotalPoints = float64(in.Float64()) + case "CurrentWeeksPoints": + out.CurrentWeeksPoints = float64(in.Float64()) + case "PreviousWeekPoints": + out.PreviousWeekPoints = float64(in.Float64()) + case "SpendingCount": + out.SpendingCount = int(in.Int()) + case "RecruitingEfficiencyScore": + out.RecruitingEfficiencyScore = float64(in.Float64()) + case "Scholarship": + out.Scholarship = bool(in.Bool()) + case "ScholarshipRevoked": + out.ScholarshipRevoked = bool(in.Bool()) + case "AffinityOneEligible": + out.AffinityOneEligible = bool(in.Bool()) + case "AffinityTwoEligible": + out.AffinityTwoEligible = bool(in.Bool()) + case "TeamAbbreviation": + out.TeamAbbreviation = string(in.String()) + case "Recruiter": + out.Recruiter = string(in.String()) + case "RemovedFromBoard": + out.RemovedFromBoard = bool(in.Bool()) + case "IsSigned": + out.IsSigned = bool(in.Bool()) + case "IsLocked": + out.IsLocked = bool(in.Bool()) + case "CaughtCheating": + out.CaughtCheating = bool(in.Bool()) + case "TeamReachedMax": + out.TeamReachedMax = bool(in.Bool()) + case "Recruit": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in, &out.Recruit) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out *jwriter.Writer, in structs.RecruitPlayerProfile) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix[1:]) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"RecruitID\":" + out.RawString(prefix) + out.Int(int(in.RecruitID)) + } + { + const prefix string = ",\"ProfileID\":" + out.RawString(prefix) + out.Int(int(in.ProfileID)) + } + { + const prefix string = ",\"TotalPoints\":" + out.RawString(prefix) + out.Float64(float64(in.TotalPoints)) + } + { + const prefix string = ",\"CurrentWeeksPoints\":" + out.RawString(prefix) + out.Float64(float64(in.CurrentWeeksPoints)) + } + { + const prefix string = ",\"PreviousWeekPoints\":" + out.RawString(prefix) + out.Float64(float64(in.PreviousWeekPoints)) + } + { + const prefix string = ",\"SpendingCount\":" + out.RawString(prefix) + out.Int(int(in.SpendingCount)) + } + { + const prefix string = ",\"RecruitingEfficiencyScore\":" + out.RawString(prefix) + out.Float64(float64(in.RecruitingEfficiencyScore)) + } + { + const prefix string = ",\"Scholarship\":" + out.RawString(prefix) + out.Bool(bool(in.Scholarship)) + } + { + const prefix string = ",\"ScholarshipRevoked\":" + out.RawString(prefix) + out.Bool(bool(in.ScholarshipRevoked)) + } + { + const prefix string = ",\"AffinityOneEligible\":" + out.RawString(prefix) + out.Bool(bool(in.AffinityOneEligible)) + } + { + const prefix string = ",\"AffinityTwoEligible\":" + out.RawString(prefix) + out.Bool(bool(in.AffinityTwoEligible)) + } + { + const prefix string = ",\"TeamAbbreviation\":" + out.RawString(prefix) + out.String(string(in.TeamAbbreviation)) + } + { + const prefix string = ",\"Recruiter\":" + out.RawString(prefix) + out.String(string(in.Recruiter)) + } + { + const prefix string = ",\"RemovedFromBoard\":" + out.RawString(prefix) + out.Bool(bool(in.RemovedFromBoard)) + } + { + const prefix string = ",\"IsSigned\":" + out.RawString(prefix) + out.Bool(bool(in.IsSigned)) + } + { + const prefix string = ",\"IsLocked\":" + out.RawString(prefix) + out.Bool(bool(in.IsLocked)) + } + { + const prefix string = ",\"CaughtCheating\":" + out.RawString(prefix) + out.Bool(bool(in.CaughtCheating)) + } + { + const prefix string = ",\"TeamReachedMax\":" + out.RawString(prefix) + out.Bool(bool(in.TeamReachedMax)) + } + { + const prefix string = ",\"Recruit\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out, in.Recruit) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, out *structs.Recruit) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "AffinityOne": + out.AffinityOne = string(in.String()) + case "AffinityTwo": + out.AffinityTwo = string(in.String()) + case "IsSigned": + out.IsSigned = bool(in.Bool()) + case "IsCustomCroot": + out.IsCustomCroot = bool(in.Bool()) + case "CustomCrootFor": + out.CustomCrootFor = string(in.String()) + case "College": + out.College = string(in.String()) + case "OverallRank": + out.OverallRank = float64(in.Float64()) + case "RivalsRank": + out.RivalsRank = float64(in.Float64()) + case "ESPNRank": + out.ESPNRank = float64(in.Float64()) + case "Rank247": + out.Rank247 = float64(in.Float64()) + case "TopRankModifier": + out.TopRankModifier = float64(in.Float64()) + case "RecruitingModifier": + out.RecruitingModifier = float64(in.Float64()) + case "RecruitingStatus": + out.RecruitingStatus = string(in.String()) + case "RecruitPlayerProfiles": + if in.IsNull() { + in.Skip() + out.RecruitPlayerProfiles = nil + } else { + in.Delim('[') + if out.RecruitPlayerProfiles == nil { + if !in.IsDelim(']') { + out.RecruitPlayerProfiles = make([]structs.RecruitPlayerProfile, 0, 0) + } else { + out.RecruitPlayerProfiles = []structs.RecruitPlayerProfile{} + } + } else { + out.RecruitPlayerProfiles = (out.RecruitPlayerProfiles)[:0] + } + for !in.IsDelim(']') { + var v69 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v69) + out.RecruitPlayerProfiles = append(out.RecruitPlayerProfiles, v69) + in.WantComma() + } + in.Delim(']') + } + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Age": + out.Age = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "Overall": + out.Overall = int(in.Int()) + case "Stamina": + out.Stamina = int(in.Int()) + case "Injury": + out.Injury = int(in.Int()) + case "FootballIQ": + out.FootballIQ = int(in.Int()) + case "Speed": + out.Speed = int(in.Int()) + case "Carrying": + out.Carrying = int(in.Int()) + case "Agility": + out.Agility = int(in.Int()) + case "Catching": + out.Catching = int(in.Int()) + case "RouteRunning": + out.RouteRunning = int(in.Int()) + case "ZoneCoverage": + out.ZoneCoverage = int(in.Int()) + case "ManCoverage": + out.ManCoverage = int(in.Int()) + case "Strength": + out.Strength = int(in.Int()) + case "Tackle": + out.Tackle = int(in.Int()) + case "PassBlock": + out.PassBlock = int(in.Int()) + case "RunBlock": + out.RunBlock = int(in.Int()) + case "PassRush": + out.PassRush = int(in.Int()) + case "RunDefense": + out.RunDefense = int(in.Int()) + case "ThrowPower": + out.ThrowPower = int(in.Int()) + case "ThrowAccuracy": + out.ThrowAccuracy = int(in.Int()) + case "KickAccuracy": + out.KickAccuracy = int(in.Int()) + case "KickPower": + out.KickPower = int(in.Int()) + case "PuntAccuracy": + out.PuntAccuracy = int(in.Int()) + case "PuntPower": + out.PuntPower = int(in.Int()) + case "Progression": + out.Progression = int(in.Int()) + case "Discipline": + out.Discipline = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer, in structs.Recruit) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"AffinityOne\":" + out.RawString(prefix) + out.String(string(in.AffinityOne)) + } + { + const prefix string = ",\"AffinityTwo\":" + out.RawString(prefix) + out.String(string(in.AffinityTwo)) + } + { + const prefix string = ",\"IsSigned\":" + out.RawString(prefix) + out.Bool(bool(in.IsSigned)) + } + { + const prefix string = ",\"IsCustomCroot\":" + out.RawString(prefix) + out.Bool(bool(in.IsCustomCroot)) + } + { + const prefix string = ",\"CustomCrootFor\":" + out.RawString(prefix) + out.String(string(in.CustomCrootFor)) + } + { + const prefix string = ",\"College\":" + out.RawString(prefix) + out.String(string(in.College)) + } + { + const prefix string = ",\"OverallRank\":" + out.RawString(prefix) + out.Float64(float64(in.OverallRank)) + } + { + const prefix string = ",\"RivalsRank\":" + out.RawString(prefix) + out.Float64(float64(in.RivalsRank)) + } + { + const prefix string = ",\"ESPNRank\":" + out.RawString(prefix) + out.Float64(float64(in.ESPNRank)) + } + { + const prefix string = ",\"Rank247\":" + out.RawString(prefix) + out.Float64(float64(in.Rank247)) + } + { + const prefix string = ",\"TopRankModifier\":" + out.RawString(prefix) + out.Float64(float64(in.TopRankModifier)) + } + { + const prefix string = ",\"RecruitingModifier\":" + out.RawString(prefix) + out.Float64(float64(in.RecruitingModifier)) + } + { + const prefix string = ",\"RecruitingStatus\":" + out.RawString(prefix) + out.String(string(in.RecruitingStatus)) + } + { + const prefix string = ",\"RecruitPlayerProfiles\":" + out.RawString(prefix) + if in.RecruitPlayerProfiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v70, v71 := range in.RecruitPlayerProfiles { + if v70 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v71) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"Overall\":" + out.RawString(prefix) + out.Int(int(in.Overall)) + } + { + const prefix string = ",\"Stamina\":" + out.RawString(prefix) + out.Int(int(in.Stamina)) + } + { + const prefix string = ",\"Injury\":" + out.RawString(prefix) + out.Int(int(in.Injury)) + } + { + const prefix string = ",\"FootballIQ\":" + out.RawString(prefix) + out.Int(int(in.FootballIQ)) + } + { + const prefix string = ",\"Speed\":" + out.RawString(prefix) + out.Int(int(in.Speed)) + } + { + const prefix string = ",\"Carrying\":" + out.RawString(prefix) + out.Int(int(in.Carrying)) + } + { + const prefix string = ",\"Agility\":" + out.RawString(prefix) + out.Int(int(in.Agility)) + } + { + const prefix string = ",\"Catching\":" + out.RawString(prefix) + out.Int(int(in.Catching)) + } + { + const prefix string = ",\"RouteRunning\":" + out.RawString(prefix) + out.Int(int(in.RouteRunning)) + } + { + const prefix string = ",\"ZoneCoverage\":" + out.RawString(prefix) + out.Int(int(in.ZoneCoverage)) + } + { + const prefix string = ",\"ManCoverage\":" + out.RawString(prefix) + out.Int(int(in.ManCoverage)) + } + { + const prefix string = ",\"Strength\":" + out.RawString(prefix) + out.Int(int(in.Strength)) + } + { + const prefix string = ",\"Tackle\":" + out.RawString(prefix) + out.Int(int(in.Tackle)) + } + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int(int(in.PassBlock)) + } + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int(int(in.RunBlock)) + } + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int(int(in.PassRush)) + } + { + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int(int(in.RunDefense)) + } + { + const prefix string = ",\"ThrowPower\":" + out.RawString(prefix) + out.Int(int(in.ThrowPower)) + } + { + const prefix string = ",\"ThrowAccuracy\":" + out.RawString(prefix) + out.Int(int(in.ThrowAccuracy)) + } + { + const prefix string = ",\"KickAccuracy\":" + out.RawString(prefix) + out.Int(int(in.KickAccuracy)) + } + { + const prefix string = ",\"KickPower\":" + out.RawString(prefix) + out.Int(int(in.KickPower)) + } + { + const prefix string = ",\"PuntAccuracy\":" + out.RawString(prefix) + out.Int(int(in.PuntAccuracy)) + } + { + const prefix string = ",\"PuntPower\":" + out.RawString(prefix) + out.Int(int(in.PuntPower)) + } + { + const prefix string = ",\"Progression\":" + out.RawString(prefix) + out.Int(int(in.Progression)) + } + { + const prefix string = ",\"Discipline\":" + out.RawString(prefix) + out.Int(int(in.Discipline)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"FreeAgency\":" + out.RawString(prefix) + out.String(string(in.FreeAgency)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"IsInjured\":" + out.RawString(prefix) + out.Bool(bool(in.IsInjured)) + } + { + const prefix string = ",\"InjuryName\":" + out.RawString(prefix) + out.String(string(in.InjuryName)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryReserve\":" + out.RawString(prefix) + out.Bool(bool(in.InjuryReserve)) + } + { + const prefix string = ",\"PrimeAge\":" + out.RawString(prefix) + out.Uint(uint(in.PrimeAge)) + } + { + const prefix string = ",\"Clutch\":" + out.RawString(prefix) + out.Int(int(in.Clutch)) + } + { + const prefix string = ",\"Shotgun\":" + out.RawString(prefix) + out.Int(int(in.Shotgun)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"ArchetypeTwo\":" + out.RawString(prefix) + out.String(string(in.ArchetypeTwo)) + } + { + const prefix string = ",\"RelativeID\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeID)) + } + { + const prefix string = ",\"RelativeType\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeType)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs23(in *jlexer.Lexer, out *structs.CollegeCoach) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CoachName": + out.CoachName = string(in.String()) + case "Age": + out.Age = int(in.Int()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "AlmaMaterID": + out.AlmaMaterID = uint(in.Uint()) + case "AlmaMater": + out.AlmaMater = string(in.String()) + case "FormerPlayerID": + out.FormerPlayerID = uint(in.Uint()) + case "Prestige": + out.Prestige = int(in.Int()) + case "PointMin": + out.PointMin = int(in.Int()) + case "PointMax": + out.PointMax = int(in.Int()) + case "StarMin": + out.StarMin = int(in.Int()) + case "StarMax": + out.StarMax = int(in.Int()) + case "Odds1": + out.Odds1 = int(in.Int()) + case "Odds2": + out.Odds2 = int(in.Int()) + case "Odds3": + out.Odds3 = int(in.Int()) + case "Odds4": + out.Odds4 = int(in.Int()) + case "Odds5": + out.Odds5 = int(in.Int()) + case "PositionOne": + out.PositionOne = string(in.String()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "PositionThree": + out.PositionThree = string(in.String()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "TeambuildingPreference": + out.TeambuildingPreference = string(in.String()) + case "CareerPreference": + out.CareerPreference = string(in.String()) + case "PromiseTendency": + out.PromiseTendency = string(in.String()) + case "PortalReputation": + out.PortalReputation = int(in.Int()) + case "SchoolTenure": + out.SchoolTenure = int(in.Int()) + case "CareerTenure": + out.CareerTenure = int(in.Int()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "YearsRemaining": + out.YearsRemaining = int(in.Int()) + case "OverallWins": + out.OverallWins = int(in.Int()) + case "OverallLosses": + out.OverallLosses = int(in.Int()) + case "OverallConferenceChampionships": + out.OverallConferenceChampionships = int(in.Int()) + case "BowlWins": + out.BowlWins = int(in.Int()) + case "BowlLosses": + out.BowlLosses = int(in.Int()) + case "PlayoffWins": + out.PlayoffWins = int(in.Int()) + case "PlayoffLosses": + out.PlayoffLosses = int(in.Int()) + case "NationalChampionships": + out.NationalChampionships = int(in.Int()) + case "IsUser": + out.IsUser = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsRetired": + out.IsRetired = bool(in.Bool()) + case "IsFormerPlayer": + out.IsFormerPlayer = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out *jwriter.Writer, in structs.CollegeCoach) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CoachName\":" + out.RawString(prefix[1:]) + out.String(string(in.CoachName)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"AlmaMaterID\":" + out.RawString(prefix) + out.Uint(uint(in.AlmaMaterID)) + } + { + const prefix string = ",\"AlmaMater\":" + out.RawString(prefix) + out.String(string(in.AlmaMater)) + } + { + const prefix string = ",\"FormerPlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.FormerPlayerID)) + } + { + const prefix string = ",\"Prestige\":" + out.RawString(prefix) + out.Int(int(in.Prestige)) + } + { + const prefix string = ",\"PointMin\":" + out.RawString(prefix) + out.Int(int(in.PointMin)) + } + { + const prefix string = ",\"PointMax\":" + out.RawString(prefix) + out.Int(int(in.PointMax)) + } + { + const prefix string = ",\"StarMin\":" + out.RawString(prefix) + out.Int(int(in.StarMin)) + } + { + const prefix string = ",\"StarMax\":" + out.RawString(prefix) + out.Int(int(in.StarMax)) + } + { + const prefix string = ",\"Odds1\":" + out.RawString(prefix) + out.Int(int(in.Odds1)) + } + { + const prefix string = ",\"Odds2\":" + out.RawString(prefix) + out.Int(int(in.Odds2)) + } + { + const prefix string = ",\"Odds3\":" + out.RawString(prefix) + out.Int(int(in.Odds3)) + } + { + const prefix string = ",\"Odds4\":" + out.RawString(prefix) + out.Int(int(in.Odds4)) + } + { + const prefix string = ",\"Odds5\":" + out.RawString(prefix) + out.Int(int(in.Odds5)) + } + { + const prefix string = ",\"PositionOne\":" + out.RawString(prefix) + out.String(string(in.PositionOne)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"PositionThree\":" + out.RawString(prefix) + out.String(string(in.PositionThree)) + } + { + const prefix string = ",\"OffensiveScheme\":" + out.RawString(prefix) + out.String(string(in.OffensiveScheme)) + } + { + const prefix string = ",\"DefensiveScheme\":" + out.RawString(prefix) + out.String(string(in.DefensiveScheme)) + } + { + const prefix string = ",\"TeambuildingPreference\":" + out.RawString(prefix) + out.String(string(in.TeambuildingPreference)) + } + { + const prefix string = ",\"CareerPreference\":" + out.RawString(prefix) + out.String(string(in.CareerPreference)) + } + { + const prefix string = ",\"PromiseTendency\":" + out.RawString(prefix) + out.String(string(in.PromiseTendency)) + } + { + const prefix string = ",\"PortalReputation\":" + out.RawString(prefix) + out.Int(int(in.PortalReputation)) + } + { + const prefix string = ",\"SchoolTenure\":" + out.RawString(prefix) + out.Int(int(in.SchoolTenure)) + } + { + const prefix string = ",\"CareerTenure\":" + out.RawString(prefix) + out.Int(int(in.CareerTenure)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"YearsRemaining\":" + out.RawString(prefix) + out.Int(int(in.YearsRemaining)) + } + { + const prefix string = ",\"OverallWins\":" + out.RawString(prefix) + out.Int(int(in.OverallWins)) + } + { + const prefix string = ",\"OverallLosses\":" + out.RawString(prefix) + out.Int(int(in.OverallLosses)) + } + { + const prefix string = ",\"OverallConferenceChampionships\":" + out.RawString(prefix) + out.Int(int(in.OverallConferenceChampionships)) + } + { + const prefix string = ",\"BowlWins\":" + out.RawString(prefix) + out.Int(int(in.BowlWins)) + } + { + const prefix string = ",\"BowlLosses\":" + out.RawString(prefix) + out.Int(int(in.BowlLosses)) + } + { + const prefix string = ",\"PlayoffWins\":" + out.RawString(prefix) + out.Int(int(in.PlayoffWins)) + } + { + const prefix string = ",\"PlayoffLosses\":" + out.RawString(prefix) + out.Int(int(in.PlayoffLosses)) + } + { + const prefix string = ",\"NationalChampionships\":" + out.RawString(prefix) + out.Int(int(in.NationalChampionships)) + } + { + const prefix string = ",\"IsUser\":" + out.RawString(prefix) + out.Bool(bool(in.IsUser)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsRetired\":" + out.RawString(prefix) + out.Bool(bool(in.IsRetired)) + } + { + const prefix string = ",\"IsFormerPlayer\":" + out.RawString(prefix) + out.Bool(bool(in.IsFormerPlayer)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, out *BootstrapDataTeamRoster) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ContractMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.ContractMap = make(map[uint]structs.NFLContract) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v72 structs.NFLContract + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &v72) + (out.ContractMap)[key] = v72 + in.WantComma() + } + in.Delim('}') + } + case "ExtensionMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.ExtensionMap = make(map[uint]structs.NFLExtensionOffer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v73 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v73) + (out.ExtensionMap)[key] = v73 + in.WantComma() + } + in.Delim('}') + } + case "CollegePromises": + if in.IsNull() { + in.Skip() + out.CollegePromises = nil + } else { + in.Delim('[') + if out.CollegePromises == nil { + if !in.IsDelim(']') { + out.CollegePromises = make([]structs.CollegePromise, 0, 0) + } else { + out.CollegePromises = []structs.CollegePromise{} + } + } else { + out.CollegePromises = (out.CollegePromises)[:0] + } + for !in.IsDelim(']') { + var v74 structs.CollegePromise + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v74) + out.CollegePromises = append(out.CollegePromises, v74) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer, in BootstrapDataTeamRoster) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ContractMap\":" + out.RawString(prefix[1:]) + if in.ContractMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v75First := true + for v75Name, v75Value := range in.ContractMap { + if v75First { + v75First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v75Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v75Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ExtensionMap\":" + out.RawString(prefix) + if in.ExtensionMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v76First := true + for v76Name, v76Value := range in.ExtensionMap { + if v76First { + v76First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v76Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v76Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"CollegePromises\":" + out.RawString(prefix) + if in.CollegePromises == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v77, v78 := range in.CollegePromises { + if v77 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v78) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataTeamRoster) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataTeamRoster) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataTeamRoster) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataTeamRoster) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in *jlexer.Lexer, out *structs.CollegePromise) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "CollegePlayerID": + out.CollegePlayerID = uint(in.Uint()) + case "PromiseType": + out.PromiseType = string(in.String()) + case "PromiseWeight": + out.PromiseWeight = string(in.String()) + case "Benchmark": + out.Benchmark = int(in.Int()) + case "BenchmarkStr": + out.BenchmarkStr = string(in.String()) + case "PromiseMade": + out.PromiseMade = bool(in.Bool()) + case "IsFullfilled": + out.IsFullfilled = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.DeletedAt).UnmarshalJSON(data)) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out *jwriter.Writer, in structs.CollegePromise) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"CollegePlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.CollegePlayerID)) + } + { + const prefix string = ",\"PromiseType\":" + out.RawString(prefix) + out.String(string(in.PromiseType)) + } + { + const prefix string = ",\"PromiseWeight\":" + out.RawString(prefix) + out.String(string(in.PromiseWeight)) + } + { + const prefix string = ",\"Benchmark\":" + out.RawString(prefix) + out.Int(int(in.Benchmark)) + } + { + const prefix string = ",\"BenchmarkStr\":" + out.RawString(prefix) + out.String(string(in.BenchmarkStr)) + } + { + const prefix string = ",\"PromiseMade\":" + out.RawString(prefix) + out.Bool(bool(in.PromiseMade)) + } + { + const prefix string = ",\"IsFullfilled\":" + out.RawString(prefix) + out.Bool(bool(in.IsFullfilled)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + out.Raw((in.DeletedAt).MarshalJSON()) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, out *BootstrapDataScheduling) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "OfficialPolls": + if in.IsNull() { + in.Skip() + out.OfficialPolls = nil + } else { + in.Delim('[') + if out.OfficialPolls == nil { + if !in.IsDelim(']') { + out.OfficialPolls = make([]structs.CollegePollOfficial, 0, 0) + } else { + out.OfficialPolls = []structs.CollegePollOfficial{} + } + } else { + out.OfficialPolls = (out.OfficialPolls)[:0] + } + for !in.IsDelim(']') { + var v79 structs.CollegePollOfficial + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v79) + out.OfficialPolls = append(out.OfficialPolls, v79) + in.WantComma() + } + in.Delim(']') + } + case "PollSubmission": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &out.PollSubmission) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer, in BootstrapDataScheduling) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"OfficialPolls\":" + out.RawString(prefix[1:]) + if in.OfficialPolls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v80, v81 := range in.OfficialPolls { + if v80 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v81) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"PollSubmission\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, in.PollSubmission) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataScheduling) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataScheduling) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataScheduling) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataScheduling) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in *jlexer.Lexer, out *structs.CollegePollSubmission) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "Username": + out.Username = string(in.String()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "WeekID": + out.WeekID = uint(in.Uint()) + case "Week": + out.Week = uint(in.Uint()) + case "Rank1": + out.Rank1 = string(in.String()) + case "Rank1ID": + out.Rank1ID = uint(in.Uint()) + case "Rank2": + out.Rank2 = string(in.String()) + case "Rank2ID": + out.Rank2ID = uint(in.Uint()) + case "Rank3": + out.Rank3 = string(in.String()) + case "Rank3ID": + out.Rank3ID = uint(in.Uint()) + case "Rank4": + out.Rank4 = string(in.String()) + case "Rank4ID": + out.Rank4ID = uint(in.Uint()) + case "Rank5": + out.Rank5 = string(in.String()) + case "Rank5ID": + out.Rank5ID = uint(in.Uint()) + case "Rank6": + out.Rank6 = string(in.String()) + case "Rank6ID": + out.Rank6ID = uint(in.Uint()) + case "Rank7": + out.Rank7 = string(in.String()) + case "Rank7ID": + out.Rank7ID = uint(in.Uint()) + case "Rank8": + out.Rank8 = string(in.String()) + case "Rank8ID": + out.Rank8ID = uint(in.Uint()) + case "Rank9": + out.Rank9 = string(in.String()) + case "Rank9ID": + out.Rank9ID = uint(in.Uint()) + case "Rank10": + out.Rank10 = string(in.String()) + case "Rank10ID": + out.Rank10ID = uint(in.Uint()) + case "Rank11": + out.Rank11 = string(in.String()) + case "Rank11ID": + out.Rank11ID = uint(in.Uint()) + case "Rank12": + out.Rank12 = string(in.String()) + case "Rank12ID": + out.Rank12ID = uint(in.Uint()) + case "Rank13": + out.Rank13 = string(in.String()) + case "Rank13ID": + out.Rank13ID = uint(in.Uint()) + case "Rank14": + out.Rank14 = string(in.String()) + case "Rank14ID": + out.Rank14ID = uint(in.Uint()) + case "Rank15": + out.Rank15 = string(in.String()) + case "Rank15ID": + out.Rank15ID = uint(in.Uint()) + case "Rank16": + out.Rank16 = string(in.String()) + case "Rank16ID": + out.Rank16ID = uint(in.Uint()) + case "Rank17": + out.Rank17 = string(in.String()) + case "Rank17ID": + out.Rank17ID = uint(in.Uint()) + case "Rank18": + out.Rank18 = string(in.String()) + case "Rank18ID": + out.Rank18ID = uint(in.Uint()) + case "Rank19": + out.Rank19 = string(in.String()) + case "Rank19ID": + out.Rank19ID = uint(in.Uint()) + case "Rank20": + out.Rank20 = string(in.String()) + case "Rank20ID": + out.Rank20ID = uint(in.Uint()) + case "Rank21": + out.Rank21 = string(in.String()) + case "Rank21ID": + out.Rank21ID = uint(in.Uint()) + case "Rank22": + out.Rank22 = string(in.String()) + case "Rank22ID": + out.Rank22ID = uint(in.Uint()) + case "Rank23": + out.Rank23 = string(in.String()) + case "Rank23ID": + out.Rank23ID = uint(in.Uint()) + case "Rank24": + out.Rank24 = string(in.String()) + case "Rank24ID": + out.Rank24ID = uint(in.Uint()) + case "Rank25": + out.Rank25 = string(in.String()) + case "Rank25ID": + out.Rank25ID = uint(in.Uint()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.DeletedAt).UnmarshalJSON(data)) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out *jwriter.Writer, in structs.CollegePollSubmission) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"Username\":" + out.RawString(prefix[1:]) + out.String(string(in.Username)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Uint(uint(in.WeekID)) + } + { + const prefix string = ",\"Week\":" + out.RawString(prefix) + out.Uint(uint(in.Week)) + } + { + const prefix string = ",\"Rank1\":" + out.RawString(prefix) + out.String(string(in.Rank1)) + } + { + const prefix string = ",\"Rank1ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank1ID)) + } + { + const prefix string = ",\"Rank2\":" + out.RawString(prefix) + out.String(string(in.Rank2)) + } + { + const prefix string = ",\"Rank2ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank2ID)) + } + { + const prefix string = ",\"Rank3\":" + out.RawString(prefix) + out.String(string(in.Rank3)) + } + { + const prefix string = ",\"Rank3ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank3ID)) + } + { + const prefix string = ",\"Rank4\":" + out.RawString(prefix) + out.String(string(in.Rank4)) + } + { + const prefix string = ",\"Rank4ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank4ID)) + } + { + const prefix string = ",\"Rank5\":" + out.RawString(prefix) + out.String(string(in.Rank5)) + } + { + const prefix string = ",\"Rank5ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank5ID)) + } + { + const prefix string = ",\"Rank6\":" + out.RawString(prefix) + out.String(string(in.Rank6)) + } + { + const prefix string = ",\"Rank6ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank6ID)) + } + { + const prefix string = ",\"Rank7\":" + out.RawString(prefix) + out.String(string(in.Rank7)) + } + { + const prefix string = ",\"Rank7ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank7ID)) + } + { + const prefix string = ",\"Rank8\":" + out.RawString(prefix) + out.String(string(in.Rank8)) + } + { + const prefix string = ",\"Rank8ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank8ID)) + } + { + const prefix string = ",\"Rank9\":" + out.RawString(prefix) + out.String(string(in.Rank9)) + } + { + const prefix string = ",\"Rank9ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank9ID)) + } + { + const prefix string = ",\"Rank10\":" + out.RawString(prefix) + out.String(string(in.Rank10)) + } + { + const prefix string = ",\"Rank10ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank10ID)) + } + { + const prefix string = ",\"Rank11\":" + out.RawString(prefix) + out.String(string(in.Rank11)) + } + { + const prefix string = ",\"Rank11ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank11ID)) + } + { + const prefix string = ",\"Rank12\":" + out.RawString(prefix) + out.String(string(in.Rank12)) + } + { + const prefix string = ",\"Rank12ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank12ID)) + } + { + const prefix string = ",\"Rank13\":" + out.RawString(prefix) + out.String(string(in.Rank13)) + } + { + const prefix string = ",\"Rank13ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank13ID)) + } + { + const prefix string = ",\"Rank14\":" + out.RawString(prefix) + out.String(string(in.Rank14)) + } + { + const prefix string = ",\"Rank14ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank14ID)) + } + { + const prefix string = ",\"Rank15\":" + out.RawString(prefix) + out.String(string(in.Rank15)) + } + { + const prefix string = ",\"Rank15ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank15ID)) + } + { + const prefix string = ",\"Rank16\":" + out.RawString(prefix) + out.String(string(in.Rank16)) + } + { + const prefix string = ",\"Rank16ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank16ID)) + } + { + const prefix string = ",\"Rank17\":" + out.RawString(prefix) + out.String(string(in.Rank17)) + } + { + const prefix string = ",\"Rank17ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank17ID)) + } + { + const prefix string = ",\"Rank18\":" + out.RawString(prefix) + out.String(string(in.Rank18)) + } + { + const prefix string = ",\"Rank18ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank18ID)) + } + { + const prefix string = ",\"Rank19\":" + out.RawString(prefix) + out.String(string(in.Rank19)) + } + { + const prefix string = ",\"Rank19ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank19ID)) + } + { + const prefix string = ",\"Rank20\":" + out.RawString(prefix) + out.String(string(in.Rank20)) + } + { + const prefix string = ",\"Rank20ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank20ID)) + } + { + const prefix string = ",\"Rank21\":" + out.RawString(prefix) + out.String(string(in.Rank21)) + } + { + const prefix string = ",\"Rank21ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank21ID)) + } + { + const prefix string = ",\"Rank22\":" + out.RawString(prefix) + out.String(string(in.Rank22)) + } + { + const prefix string = ",\"Rank22ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank22ID)) + } + { + const prefix string = ",\"Rank23\":" + out.RawString(prefix) + out.String(string(in.Rank23)) + } + { + const prefix string = ",\"Rank23ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank23ID)) + } + { + const prefix string = ",\"Rank24\":" + out.RawString(prefix) + out.String(string(in.Rank24)) + } + { + const prefix string = ",\"Rank24ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank24ID)) + } + { + const prefix string = ",\"Rank25\":" + out.RawString(prefix) + out.String(string(in.Rank25)) + } + { + const prefix string = ",\"Rank25ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank25ID)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + out.Raw((in.DeletedAt).MarshalJSON()) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in *jlexer.Lexer, out *structs.CollegePollOfficial) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "WeekID": + out.WeekID = uint(in.Uint()) + case "Week": + out.Week = uint(in.Uint()) + case "Rank1": + out.Rank1 = string(in.String()) + case "Rank1ID": + out.Rank1ID = uint(in.Uint()) + case "Rank1Votes": + out.Rank1Votes = uint(in.Uint()) + case "Rank1No1Votes": + out.Rank1No1Votes = uint(in.Uint()) + case "Rank2": + out.Rank2 = string(in.String()) + case "Rank2ID": + out.Rank2ID = uint(in.Uint()) + case "Rank2Votes": + out.Rank2Votes = uint(in.Uint()) + case "Rank2No1Votes": + out.Rank2No1Votes = uint(in.Uint()) + case "Rank3": + out.Rank3 = string(in.String()) + case "Rank3ID": + out.Rank3ID = uint(in.Uint()) + case "Rank3Votes": + out.Rank3Votes = uint(in.Uint()) + case "Rank3No1Votes": + out.Rank3No1Votes = uint(in.Uint()) + case "Rank4": + out.Rank4 = string(in.String()) + case "Rank4ID": + out.Rank4ID = uint(in.Uint()) + case "Rank4Votes": + out.Rank4Votes = uint(in.Uint()) + case "Rank4No1Votes": + out.Rank4No1Votes = uint(in.Uint()) + case "Rank5": + out.Rank5 = string(in.String()) + case "Rank5ID": + out.Rank5ID = uint(in.Uint()) + case "Rank5Votes": + out.Rank5Votes = uint(in.Uint()) + case "Rank5No1Votes": + out.Rank5No1Votes = uint(in.Uint()) + case "Rank6": + out.Rank6 = string(in.String()) + case "Rank6ID": + out.Rank6ID = uint(in.Uint()) + case "Rank6Votes": + out.Rank6Votes = uint(in.Uint()) + case "Rank6No1Votes": + out.Rank6No1Votes = uint(in.Uint()) + case "Rank7": + out.Rank7 = string(in.String()) + case "Rank7ID": + out.Rank7ID = uint(in.Uint()) + case "Rank7Votes": + out.Rank7Votes = uint(in.Uint()) + case "Rank7No1Votes": + out.Rank7No1Votes = uint(in.Uint()) + case "Rank8": + out.Rank8 = string(in.String()) + case "Rank8ID": + out.Rank8ID = uint(in.Uint()) + case "Rank8Votes": + out.Rank8Votes = uint(in.Uint()) + case "Rank8No1Votes": + out.Rank8No1Votes = uint(in.Uint()) + case "Rank9": + out.Rank9 = string(in.String()) + case "Rank9ID": + out.Rank9ID = uint(in.Uint()) + case "Rank9Votes": + out.Rank9Votes = uint(in.Uint()) + case "Rank9No1Votes": + out.Rank9No1Votes = uint(in.Uint()) + case "Rank10": + out.Rank10 = string(in.String()) + case "Rank10ID": + out.Rank10ID = uint(in.Uint()) + case "Rank10Votes": + out.Rank10Votes = uint(in.Uint()) + case "Rank10No1Votes": + out.Rank10No1Votes = uint(in.Uint()) + case "Rank11": + out.Rank11 = string(in.String()) + case "Rank11ID": + out.Rank11ID = uint(in.Uint()) + case "Rank11Votes": + out.Rank11Votes = uint(in.Uint()) + case "Rank11No1Votes": + out.Rank11No1Votes = uint(in.Uint()) + case "Rank12": + out.Rank12 = string(in.String()) + case "Rank12ID": + out.Rank12ID = uint(in.Uint()) + case "Rank12Votes": + out.Rank12Votes = uint(in.Uint()) + case "Rank12No1Votes": + out.Rank12No1Votes = uint(in.Uint()) + case "Rank13": + out.Rank13 = string(in.String()) + case "Rank13ID": + out.Rank13ID = uint(in.Uint()) + case "Rank13Votes": + out.Rank13Votes = uint(in.Uint()) + case "Rank13No1Votes": + out.Rank13No1Votes = uint(in.Uint()) + case "Rank14": + out.Rank14 = string(in.String()) + case "Rank14ID": + out.Rank14ID = uint(in.Uint()) + case "Rank14Votes": + out.Rank14Votes = uint(in.Uint()) + case "Rank14No1Votes": + out.Rank14No1Votes = uint(in.Uint()) + case "Rank15": + out.Rank15 = string(in.String()) + case "Rank15ID": + out.Rank15ID = uint(in.Uint()) + case "Rank15Votes": + out.Rank15Votes = uint(in.Uint()) + case "Rank15No1Votes": + out.Rank15No1Votes = uint(in.Uint()) + case "Rank16": + out.Rank16 = string(in.String()) + case "Rank16ID": + out.Rank16ID = uint(in.Uint()) + case "Rank16Votes": + out.Rank16Votes = uint(in.Uint()) + case "Rank16No1Votes": + out.Rank16No1Votes = uint(in.Uint()) + case "Rank17": + out.Rank17 = string(in.String()) + case "Rank17ID": + out.Rank17ID = uint(in.Uint()) + case "Rank17Votes": + out.Rank17Votes = uint(in.Uint()) + case "Rank17No1Votes": + out.Rank17No1Votes = uint(in.Uint()) + case "Rank18": + out.Rank18 = string(in.String()) + case "Rank18ID": + out.Rank18ID = uint(in.Uint()) + case "Rank18Votes": + out.Rank18Votes = uint(in.Uint()) + case "Rank18No1Votes": + out.Rank18No1Votes = uint(in.Uint()) + case "Rank19": + out.Rank19 = string(in.String()) + case "Rank19ID": + out.Rank19ID = uint(in.Uint()) + case "Rank19Votes": + out.Rank19Votes = uint(in.Uint()) + case "Rank19No1Votes": + out.Rank19No1Votes = uint(in.Uint()) + case "Rank20": + out.Rank20 = string(in.String()) + case "Rank20ID": + out.Rank20ID = uint(in.Uint()) + case "Rank20Votes": + out.Rank20Votes = uint(in.Uint()) + case "Rank20No1Votes": + out.Rank20No1Votes = uint(in.Uint()) + case "Rank21": + out.Rank21 = string(in.String()) + case "Rank21ID": + out.Rank21ID = uint(in.Uint()) + case "Rank21Votes": + out.Rank21Votes = uint(in.Uint()) + case "Rank21No1Votes": + out.Rank21No1Votes = uint(in.Uint()) + case "Rank22": + out.Rank22 = string(in.String()) + case "Rank22ID": + out.Rank22ID = uint(in.Uint()) + case "Rank22Votes": + out.Rank22Votes = uint(in.Uint()) + case "Rank22No1Votes": + out.Rank22No1Votes = uint(in.Uint()) + case "Rank23": + out.Rank23 = string(in.String()) + case "Rank23ID": + out.Rank23ID = uint(in.Uint()) + case "Rank23Votes": + out.Rank23Votes = uint(in.Uint()) + case "Rank23No1Votes": + out.Rank23No1Votes = uint(in.Uint()) + case "Rank24": + out.Rank24 = string(in.String()) + case "Rank24ID": + out.Rank24ID = uint(in.Uint()) + case "Rank24Votes": + out.Rank24Votes = uint(in.Uint()) + case "Rank24No1Votes": + out.Rank24No1Votes = uint(in.Uint()) + case "Rank25": + out.Rank25 = string(in.String()) + case "Rank25ID": + out.Rank25ID = uint(in.Uint()) + case "Rank25Votes": + out.Rank25Votes = uint(in.Uint()) + case "Rank25No1Votes": + out.Rank25No1Votes = uint(in.Uint()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.DeletedAt).UnmarshalJSON(data)) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out *jwriter.Writer, in structs.CollegePollOfficial) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix) + out.Uint(uint(in.WeekID)) + } + { + const prefix string = ",\"Week\":" + out.RawString(prefix) + out.Uint(uint(in.Week)) + } + { + const prefix string = ",\"Rank1\":" + out.RawString(prefix) + out.String(string(in.Rank1)) + } + { + const prefix string = ",\"Rank1ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank1ID)) + } + { + const prefix string = ",\"Rank1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank1Votes)) + } + { + const prefix string = ",\"Rank1No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank1No1Votes)) + } + { + const prefix string = ",\"Rank2\":" + out.RawString(prefix) + out.String(string(in.Rank2)) + } + { + const prefix string = ",\"Rank2ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank2ID)) + } + { + const prefix string = ",\"Rank2Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank2Votes)) + } + { + const prefix string = ",\"Rank2No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank2No1Votes)) + } + { + const prefix string = ",\"Rank3\":" + out.RawString(prefix) + out.String(string(in.Rank3)) + } + { + const prefix string = ",\"Rank3ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank3ID)) + } + { + const prefix string = ",\"Rank3Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank3Votes)) + } + { + const prefix string = ",\"Rank3No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank3No1Votes)) + } + { + const prefix string = ",\"Rank4\":" + out.RawString(prefix) + out.String(string(in.Rank4)) + } + { + const prefix string = ",\"Rank4ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank4ID)) + } + { + const prefix string = ",\"Rank4Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank4Votes)) + } + { + const prefix string = ",\"Rank4No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank4No1Votes)) + } + { + const prefix string = ",\"Rank5\":" + out.RawString(prefix) + out.String(string(in.Rank5)) + } + { + const prefix string = ",\"Rank5ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank5ID)) + } + { + const prefix string = ",\"Rank5Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank5Votes)) + } + { + const prefix string = ",\"Rank5No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank5No1Votes)) + } + { + const prefix string = ",\"Rank6\":" + out.RawString(prefix) + out.String(string(in.Rank6)) + } + { + const prefix string = ",\"Rank6ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank6ID)) + } + { + const prefix string = ",\"Rank6Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank6Votes)) + } + { + const prefix string = ",\"Rank6No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank6No1Votes)) + } + { + const prefix string = ",\"Rank7\":" + out.RawString(prefix) + out.String(string(in.Rank7)) + } + { + const prefix string = ",\"Rank7ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank7ID)) + } + { + const prefix string = ",\"Rank7Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank7Votes)) + } + { + const prefix string = ",\"Rank7No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank7No1Votes)) + } + { + const prefix string = ",\"Rank8\":" + out.RawString(prefix) + out.String(string(in.Rank8)) + } + { + const prefix string = ",\"Rank8ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank8ID)) + } + { + const prefix string = ",\"Rank8Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank8Votes)) + } + { + const prefix string = ",\"Rank8No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank8No1Votes)) + } + { + const prefix string = ",\"Rank9\":" + out.RawString(prefix) + out.String(string(in.Rank9)) + } + { + const prefix string = ",\"Rank9ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank9ID)) + } + { + const prefix string = ",\"Rank9Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank9Votes)) + } + { + const prefix string = ",\"Rank9No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank9No1Votes)) + } + { + const prefix string = ",\"Rank10\":" + out.RawString(prefix) + out.String(string(in.Rank10)) + } + { + const prefix string = ",\"Rank10ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank10ID)) + } + { + const prefix string = ",\"Rank10Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank10Votes)) + } + { + const prefix string = ",\"Rank10No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank10No1Votes)) + } + { + const prefix string = ",\"Rank11\":" + out.RawString(prefix) + out.String(string(in.Rank11)) + } + { + const prefix string = ",\"Rank11ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank11ID)) + } + { + const prefix string = ",\"Rank11Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank11Votes)) + } + { + const prefix string = ",\"Rank11No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank11No1Votes)) + } + { + const prefix string = ",\"Rank12\":" + out.RawString(prefix) + out.String(string(in.Rank12)) + } + { + const prefix string = ",\"Rank12ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank12ID)) + } + { + const prefix string = ",\"Rank12Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank12Votes)) + } + { + const prefix string = ",\"Rank12No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank12No1Votes)) + } + { + const prefix string = ",\"Rank13\":" + out.RawString(prefix) + out.String(string(in.Rank13)) + } + { + const prefix string = ",\"Rank13ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank13ID)) + } + { + const prefix string = ",\"Rank13Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank13Votes)) + } + { + const prefix string = ",\"Rank13No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank13No1Votes)) + } + { + const prefix string = ",\"Rank14\":" + out.RawString(prefix) + out.String(string(in.Rank14)) + } + { + const prefix string = ",\"Rank14ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank14ID)) + } + { + const prefix string = ",\"Rank14Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank14Votes)) + } + { + const prefix string = ",\"Rank14No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank14No1Votes)) + } + { + const prefix string = ",\"Rank15\":" + out.RawString(prefix) + out.String(string(in.Rank15)) + } + { + const prefix string = ",\"Rank15ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank15ID)) + } + { + const prefix string = ",\"Rank15Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank15Votes)) + } + { + const prefix string = ",\"Rank15No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank15No1Votes)) + } + { + const prefix string = ",\"Rank16\":" + out.RawString(prefix) + out.String(string(in.Rank16)) + } + { + const prefix string = ",\"Rank16ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank16ID)) + } + { + const prefix string = ",\"Rank16Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank16Votes)) + } + { + const prefix string = ",\"Rank16No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank16No1Votes)) + } + { + const prefix string = ",\"Rank17\":" + out.RawString(prefix) + out.String(string(in.Rank17)) + } + { + const prefix string = ",\"Rank17ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank17ID)) + } + { + const prefix string = ",\"Rank17Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank17Votes)) + } + { + const prefix string = ",\"Rank17No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank17No1Votes)) + } + { + const prefix string = ",\"Rank18\":" + out.RawString(prefix) + out.String(string(in.Rank18)) + } + { + const prefix string = ",\"Rank18ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank18ID)) + } + { + const prefix string = ",\"Rank18Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank18Votes)) + } + { + const prefix string = ",\"Rank18No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank18No1Votes)) + } + { + const prefix string = ",\"Rank19\":" + out.RawString(prefix) + out.String(string(in.Rank19)) + } + { + const prefix string = ",\"Rank19ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank19ID)) + } + { + const prefix string = ",\"Rank19Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank19Votes)) + } + { + const prefix string = ",\"Rank19No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank19No1Votes)) + } + { + const prefix string = ",\"Rank20\":" + out.RawString(prefix) + out.String(string(in.Rank20)) + } + { + const prefix string = ",\"Rank20ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank20ID)) + } + { + const prefix string = ",\"Rank20Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank20Votes)) + } + { + const prefix string = ",\"Rank20No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank20No1Votes)) + } + { + const prefix string = ",\"Rank21\":" + out.RawString(prefix) + out.String(string(in.Rank21)) + } + { + const prefix string = ",\"Rank21ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank21ID)) + } + { + const prefix string = ",\"Rank21Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank21Votes)) + } + { + const prefix string = ",\"Rank21No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank21No1Votes)) + } + { + const prefix string = ",\"Rank22\":" + out.RawString(prefix) + out.String(string(in.Rank22)) + } + { + const prefix string = ",\"Rank22ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank22ID)) + } + { + const prefix string = ",\"Rank22Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank22Votes)) + } + { + const prefix string = ",\"Rank22No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank22No1Votes)) + } + { + const prefix string = ",\"Rank23\":" + out.RawString(prefix) + out.String(string(in.Rank23)) + } + { + const prefix string = ",\"Rank23ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank23ID)) + } + { + const prefix string = ",\"Rank23Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank23Votes)) + } + { + const prefix string = ",\"Rank23No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank23No1Votes)) + } + { + const prefix string = ",\"Rank24\":" + out.RawString(prefix) + out.String(string(in.Rank24)) + } + { + const prefix string = ",\"Rank24ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank24ID)) + } + { + const prefix string = ",\"Rank24Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank24Votes)) + } + { + const prefix string = ",\"Rank24No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank24No1Votes)) + } + { + const prefix string = ",\"Rank25\":" + out.RawString(prefix) + out.String(string(in.Rank25)) + } + { + const prefix string = ",\"Rank25ID\":" + out.RawString(prefix) + out.Uint(uint(in.Rank25ID)) + } + { + const prefix string = ",\"Rank25Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank25Votes)) + } + { + const prefix string = ",\"Rank25No1Votes\":" + out.RawString(prefix) + out.Uint(uint(in.Rank25No1Votes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + out.Raw((in.DeletedAt).MarshalJSON()) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, out *BootstrapDataRecruiting) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "Recruits": + if in.IsNull() { + in.Skip() + out.Recruits = nil + } else { + in.Delim('[') + if out.Recruits == nil { + if !in.IsDelim(']') { + out.Recruits = make([]structs.Croot, 0, 0) + } else { + out.Recruits = []structs.Croot{} + } + } else { + out.Recruits = (out.Recruits)[:0] + } + for !in.IsDelim(']') { + var v82 structs.Croot + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v82) + out.Recruits = append(out.Recruits, v82) + in.WantComma() + } + in.Delim(']') + } + case "RecruitProfiles": + if in.IsNull() { + in.Skip() + out.RecruitProfiles = nil + } else { + in.Delim('[') + if out.RecruitProfiles == nil { + if !in.IsDelim(']') { + out.RecruitProfiles = make([]structs.RecruitPlayerProfile, 0, 0) + } else { + out.RecruitProfiles = []structs.RecruitPlayerProfile{} + } + } else { + out.RecruitProfiles = (out.RecruitProfiles)[:0] + } + for !in.IsDelim(']') { + var v83 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v83) + out.RecruitProfiles = append(out.RecruitProfiles, v83) + in.WantComma() + } + in.Delim(']') + } + case "TeamProfileMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.TeamProfileMap = make(map[string]*structs.RecruitingTeamProfile) + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v84 *structs.RecruitingTeamProfile + if in.IsNull() { + in.Skip() + v84 = nil + } else { + if v84 == nil { + v84 = new(structs.RecruitingTeamProfile) + } + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v84) + } + (out.TeamProfileMap)[key] = v84 + in.WantComma() + } + in.Delim('}') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer, in BootstrapDataRecruiting) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"Recruits\":" + out.RawString(prefix[1:]) + if in.Recruits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v85, v86 := range in.Recruits { + if v85 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v86) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"RecruitProfiles\":" + out.RawString(prefix) + if in.RecruitProfiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v87, v88 := range in.RecruitProfiles { + if v87 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v88) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TeamProfileMap\":" + out.RawString(prefix) + if in.TeamProfileMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v89First := true + for v89Name, v89Value := range in.TeamProfileMap { + if v89First { + v89First = false + } else { + out.RawByte(',') + } + out.String(string(v89Name)) + out.RawByte(':') + if v89Value == nil { + out.RawString("null") + } else { + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v89Value) + } + } + out.RawByte('}') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataRecruiting) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataRecruiting) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataRecruiting) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataRecruiting) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in *jlexer.Lexer, out *structs.Croot) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ID": + out.ID = uint(in.Uint()) + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "College": + out.College = string(in.String()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "AffinityOne": + out.AffinityOne = string(in.String()) + case "AffinityTwo": + out.AffinityTwo = string(in.String()) + case "RecruitingStatus": + out.RecruitingStatus = string(in.String()) + case "RecruitModifier": + out.RecruitModifier = float64(in.Float64()) + case "IsCustomCroot": + out.IsCustomCroot = bool(in.Bool()) + case "CustomCrootFor": + out.CustomCrootFor = string(in.String()) + case "IsSigned": + out.IsSigned = bool(in.Bool()) + case "OverallGrade": + out.OverallGrade = string(in.String()) + case "TotalRank": + out.TotalRank = float64(in.Float64()) + case "LeadingTeams": + if in.IsNull() { + in.Skip() + out.LeadingTeams = nil + } else { + in.Delim('[') + if out.LeadingTeams == nil { + if !in.IsDelim(']') { + out.LeadingTeams = make([]structs.LeadingTeams, 0, 1) + } else { + out.LeadingTeams = []structs.LeadingTeams{} + } + } else { + out.LeadingTeams = (out.LeadingTeams)[:0] + } + for !in.IsDelim(']') { + var v90 structs.LeadingTeams + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &v90) + out.LeadingTeams = append(out.LeadingTeams, v90) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out *jwriter.Writer, in structs.Croot) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"College\":" + out.RawString(prefix) + out.String(string(in.College)) + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"AffinityOne\":" + out.RawString(prefix) + out.String(string(in.AffinityOne)) + } + { + const prefix string = ",\"AffinityTwo\":" + out.RawString(prefix) + out.String(string(in.AffinityTwo)) + } + { + const prefix string = ",\"RecruitingStatus\":" + out.RawString(prefix) + out.String(string(in.RecruitingStatus)) + } + { + const prefix string = ",\"RecruitModifier\":" + out.RawString(prefix) + out.Float64(float64(in.RecruitModifier)) + } + { + const prefix string = ",\"IsCustomCroot\":" + out.RawString(prefix) + out.Bool(bool(in.IsCustomCroot)) + } + { + const prefix string = ",\"CustomCrootFor\":" + out.RawString(prefix) + out.String(string(in.CustomCrootFor)) + } + { + const prefix string = ",\"IsSigned\":" + out.RawString(prefix) + out.Bool(bool(in.IsSigned)) + } + { + const prefix string = ",\"OverallGrade\":" + out.RawString(prefix) + out.String(string(in.OverallGrade)) + } + { + const prefix string = ",\"TotalRank\":" + out.RawString(prefix) + out.Float64(float64(in.TotalRank)) + } + { + const prefix string = ",\"LeadingTeams\":" + out.RawString(prefix) + if in.LeadingTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v91, v92 := range in.LeadingTeams { + if v91 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, v92) + } + out.RawByte(']') + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, out *structs.LeadingTeams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "TeamName": + out.TeamName = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Odds": + out.Odds = float64(in.Float64()) + case "HasScholarship": + out.HasScholarship = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer, in structs.LeadingTeams) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Odds\":" + out.RawString(prefix) + out.Float64(float64(in.Odds)) + } + { + const prefix string = ",\"HasScholarship\":" + out.RawString(prefix) + out.Bool(bool(in.HasScholarship)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in *jlexer.Lexer, out *BootstrapDataPortal) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamProfileMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.TeamProfileMap = make(map[string]*structs.RecruitingTeamProfile) + for !in.IsDelim('}') { + key := string(in.String()) + in.WantColon() + var v93 *structs.RecruitingTeamProfile + if in.IsNull() { + in.Skip() + v93 = nil + } else { + if v93 == nil { + v93 = new(structs.RecruitingTeamProfile) + } + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v93) + } + (out.TeamProfileMap)[key] = v93 + in.WantComma() + } + in.Delim('}') + } + case "TransferPortalProfiles": + if in.IsNull() { + in.Skip() + out.TransferPortalProfiles = nil + } else { + in.Delim('[') + if out.TransferPortalProfiles == nil { + if !in.IsDelim(']') { + out.TransferPortalProfiles = make([]structs.TransferPortalProfile, 0, 0) + } else { + out.TransferPortalProfiles = []structs.TransferPortalProfile{} + } + } else { + out.TransferPortalProfiles = (out.TransferPortalProfiles)[:0] + } + for !in.IsDelim(']') { + var v94 structs.TransferPortalProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v94) + out.TransferPortalProfiles = append(out.TransferPortalProfiles, v94) + in.WantComma() + } + in.Delim(']') + } + case "CollegePromises": + if in.IsNull() { + in.Skip() + out.CollegePromises = nil + } else { + in.Delim('[') + if out.CollegePromises == nil { + if !in.IsDelim(']') { + out.CollegePromises = make([]structs.CollegePromise, 0, 0) + } else { + out.CollegePromises = []structs.CollegePromise{} + } + } else { + out.CollegePromises = (out.CollegePromises)[:0] + } + for !in.IsDelim(']') { + var v95 structs.CollegePromise + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v95) + out.CollegePromises = append(out.CollegePromises, v95) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out *jwriter.Writer, in BootstrapDataPortal) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamProfileMap\":" + out.RawString(prefix[1:]) + if in.TeamProfileMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v96First := true + for v96Name, v96Value := range in.TeamProfileMap { + if v96First { + v96First = false + } else { + out.RawByte(',') + } + out.String(string(v96Name)) + out.RawByte(':') + if v96Value == nil { + out.RawString("null") + } else { + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v96Value) + } + } + out.RawByte('}') + } + } + { + const prefix string = ",\"TransferPortalProfiles\":" + out.RawString(prefix) + if in.TransferPortalProfiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v97, v98 := range in.TransferPortalProfiles { + if v97 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v98) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegePromises\":" + out.RawString(prefix) + if in.CollegePromises == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v99, v100 := range in.CollegePromises { + if v99 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v100) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataPortal) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataPortal) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataPortal) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataPortal) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, out *structs.TransferPortalProfile) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "CollegePlayerID": + out.CollegePlayerID = uint(in.Uint()) + case "ProfileID": + out.ProfileID = uint(in.Uint()) + case "PromiseID": + easyjson83226b63DecodeDatabaseSql(in, &out.PromiseID) + case "TeamAbbreviation": + out.TeamAbbreviation = string(in.String()) + case "TotalPoints": + out.TotalPoints = float64(in.Float64()) + case "CurrentWeeksPoints": + out.CurrentWeeksPoints = int(in.Int()) + case "PreviouslySpentPoints": + out.PreviouslySpentPoints = int(in.Int()) + case "SpendingCount": + out.SpendingCount = int(in.Int()) + case "RemovedFromBoard": + out.RemovedFromBoard = bool(in.Bool()) + case "RolledOnPromise": + out.RolledOnPromise = bool(in.Bool()) + case "LockProfile": + out.LockProfile = bool(in.Bool()) + case "IsSigned": + out.IsSigned = bool(in.Bool()) + case "Recruiter": + out.Recruiter = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.DeletedAt).UnmarshalJSON(data)) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer, in structs.TransferPortalProfile) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"CollegePlayerID\":" + out.RawString(prefix) + out.Uint(uint(in.CollegePlayerID)) + } + { + const prefix string = ",\"ProfileID\":" + out.RawString(prefix) + out.Uint(uint(in.ProfileID)) + } + { + const prefix string = ",\"PromiseID\":" + out.RawString(prefix) + easyjson83226b63EncodeDatabaseSql(out, in.PromiseID) + } + { + const prefix string = ",\"TeamAbbreviation\":" + out.RawString(prefix) + out.String(string(in.TeamAbbreviation)) + } + { + const prefix string = ",\"TotalPoints\":" + out.RawString(prefix) + out.Float64(float64(in.TotalPoints)) + } + { + const prefix string = ",\"CurrentWeeksPoints\":" + out.RawString(prefix) + out.Int(int(in.CurrentWeeksPoints)) + } + { + const prefix string = ",\"PreviouslySpentPoints\":" + out.RawString(prefix) + out.Int(int(in.PreviouslySpentPoints)) + } + { + const prefix string = ",\"SpendingCount\":" + out.RawString(prefix) + out.Int(int(in.SpendingCount)) + } + { + const prefix string = ",\"RemovedFromBoard\":" + out.RawString(prefix) + out.Bool(bool(in.RemovedFromBoard)) + } + { + const prefix string = ",\"RolledOnPromise\":" + out.RawString(prefix) + out.Bool(bool(in.RolledOnPromise)) + } + { + const prefix string = ",\"LockProfile\":" + out.RawString(prefix) + out.Bool(bool(in.LockProfile)) + } + { + const prefix string = ",\"IsSigned\":" + out.RawString(prefix) + out.Bool(bool(in.IsSigned)) + } + { + const prefix string = ",\"Recruiter\":" + out.RawString(prefix) + out.String(string(in.Recruiter)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + out.Raw((in.DeletedAt).MarshalJSON()) + } + out.RawByte('}') +} +func easyjson83226b63DecodeDatabaseSql(in *jlexer.Lexer, out *sql.NullInt64) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "Int64": + out.Int64 = int64(in.Int64()) + case "Valid": + out.Valid = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeDatabaseSql(out *jwriter.Writer, in sql.NullInt64) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"Int64\":" + out.RawString(prefix[1:]) + out.Int64(int64(in.Int64)) + } + { + const prefix string = ",\"Valid\":" + out.RawString(prefix) + out.Bool(bool(in.Valid)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, out *BootstrapDataNews) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegeNews": + if in.IsNull() { + in.Skip() + out.CollegeNews = nil + } else { + in.Delim('[') + if out.CollegeNews == nil { + if !in.IsDelim(']') { + out.CollegeNews = make([]structs.NewsLog, 0, 0) + } else { + out.CollegeNews = []structs.NewsLog{} + } + } else { + out.CollegeNews = (out.CollegeNews)[:0] + } + for !in.IsDelim(']') { + var v101 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &v101) + out.CollegeNews = append(out.CollegeNews, v101) + in.WantComma() + } + in.Delim(']') + } + case "ProNews": + if in.IsNull() { + in.Skip() + out.ProNews = nil + } else { + in.Delim('[') + if out.ProNews == nil { + if !in.IsDelim(']') { + out.ProNews = make([]structs.NewsLog, 0, 0) + } else { + out.ProNews = []structs.NewsLog{} + } + } else { + out.ProNews = (out.ProNews)[:0] + } + for !in.IsDelim(']') { + var v102 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &v102) + out.ProNews = append(out.ProNews, v102) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer, in BootstrapDataNews) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegeNews\":" + out.RawString(prefix[1:]) + if in.CollegeNews == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v103, v104 := range in.CollegeNews { + if v103 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, v104) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ProNews\":" + out.RawString(prefix) + if in.ProNews == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v105, v106 := range in.ProNews { + if v105 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, v106) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataNews) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataNews) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataNews) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataNews) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in *jlexer.Lexer, out *structs.NewsLog) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "WeekID": + out.WeekID = int(in.Int()) + case "Week": + out.Week = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "MessageType": + out.MessageType = string(in.String()) + case "Message": + out.Message = string(in.String()) + case "League": + out.League = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out *jwriter.Writer, in structs.NewsLog) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix[1:]) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"Week\":" + out.RawString(prefix) + out.Int(int(in.Week)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"MessageType\":" + out.RawString(prefix) + out.String(string(in.MessageType)) + } + { + const prefix string = ",\"Message\":" + out.RawString(prefix) + out.String(string(in.Message)) + } + { + const prefix string = ",\"League\":" + out.RawString(prefix) + out.String(string(in.League)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, out *BootstrapDataLanding) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegeTeam": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &out.CollegeTeam) + case "CollegeRosterMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.CollegeRosterMap = make(map[uint][]structs.CollegePlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v107 []structs.CollegePlayer + if in.IsNull() { + in.Skip() + v107 = nil + } else { + in.Delim('[') + if v107 == nil { + if !in.IsDelim(']') { + v107 = make([]structs.CollegePlayer, 0, 0) + } else { + v107 = []structs.CollegePlayer{} + } + } else { + v107 = (v107)[:0] + } + for !in.IsDelim(']') { + var v108 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v108) + v107 = append(v107, v108) + in.WantComma() + } + in.Delim(']') + } + (out.CollegeRosterMap)[key] = v107 + in.WantComma() + } + in.Delim('}') + } + case "CollegeStandings": + if in.IsNull() { + in.Skip() + out.CollegeStandings = nil + } else { + in.Delim('[') + if out.CollegeStandings == nil { + if !in.IsDelim(']') { + out.CollegeStandings = make([]structs.CollegeStandings, 0, 0) + } else { + out.CollegeStandings = []structs.CollegeStandings{} + } + } else { + out.CollegeStandings = (out.CollegeStandings)[:0] + } + for !in.IsDelim(']') { + var v109 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v109) + out.CollegeStandings = append(out.CollegeStandings, v109) + in.WantComma() + } + in.Delim(']') + } + case "AllCollegeGames": + if in.IsNull() { + in.Skip() + out.AllCollegeGames = nil + } else { + in.Delim('[') + if out.AllCollegeGames == nil { + if !in.IsDelim(']') { + out.AllCollegeGames = make([]structs.CollegeGame, 0, 0) + } else { + out.AllCollegeGames = []structs.CollegeGame{} + } + } else { + out.AllCollegeGames = (out.AllCollegeGames)[:0] + } + for !in.IsDelim(']') { + var v110 structs.CollegeGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v110) + out.AllCollegeGames = append(out.AllCollegeGames, v110) + in.WantComma() + } + in.Delim(']') + } + case "OfficialPolls": + if in.IsNull() { + in.Skip() + out.OfficialPolls = nil + } else { + in.Delim('[') + if out.OfficialPolls == nil { + if !in.IsDelim(']') { + out.OfficialPolls = make([]structs.CollegePollOfficial, 0, 0) + } else { + out.OfficialPolls = []structs.CollegePollOfficial{} + } + } else { + out.OfficialPolls = (out.OfficialPolls)[:0] + } + for !in.IsDelim(']') { + var v111 structs.CollegePollOfficial + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v111) + out.OfficialPolls = append(out.OfficialPolls, v111) + in.WantComma() + } + in.Delim(']') + } + case "TopCFBPassers": + if in.IsNull() { + in.Skip() + out.TopCFBPassers = nil + } else { + in.Delim('[') + if out.TopCFBPassers == nil { + if !in.IsDelim(']') { + out.TopCFBPassers = make([]structs.CollegePlayer, 0, 0) + } else { + out.TopCFBPassers = []structs.CollegePlayer{} + } + } else { + out.TopCFBPassers = (out.TopCFBPassers)[:0] + } + for !in.IsDelim(']') { + var v112 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v112) + out.TopCFBPassers = append(out.TopCFBPassers, v112) + in.WantComma() + } + in.Delim(']') + } + case "TopCFBRushers": + if in.IsNull() { + in.Skip() + out.TopCFBRushers = nil + } else { + in.Delim('[') + if out.TopCFBRushers == nil { + if !in.IsDelim(']') { + out.TopCFBRushers = make([]structs.CollegePlayer, 0, 0) + } else { + out.TopCFBRushers = []structs.CollegePlayer{} + } + } else { + out.TopCFBRushers = (out.TopCFBRushers)[:0] + } + for !in.IsDelim(']') { + var v113 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v113) + out.TopCFBRushers = append(out.TopCFBRushers, v113) + in.WantComma() + } + in.Delim(']') + } + case "TopCFBReceivers": + if in.IsNull() { + in.Skip() + out.TopCFBReceivers = nil + } else { + in.Delim('[') + if out.TopCFBReceivers == nil { + if !in.IsDelim(']') { + out.TopCFBReceivers = make([]structs.CollegePlayer, 0, 0) + } else { + out.TopCFBReceivers = []structs.CollegePlayer{} + } + } else { + out.TopCFBReceivers = (out.TopCFBReceivers)[:0] + } + for !in.IsDelim(']') { + var v114 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v114) + out.TopCFBReceivers = append(out.TopCFBReceivers, v114) + in.WantComma() + } + in.Delim(']') + } + case "PortalPlayers": + if in.IsNull() { + in.Skip() + out.PortalPlayers = nil + } else { + in.Delim('[') + if out.PortalPlayers == nil { + if !in.IsDelim(']') { + out.PortalPlayers = make([]structs.CollegePlayer, 0, 0) + } else { + out.PortalPlayers = []structs.CollegePlayer{} + } + } else { + out.PortalPlayers = (out.PortalPlayers)[:0] + } + for !in.IsDelim(']') { + var v115 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v115) + out.PortalPlayers = append(out.PortalPlayers, v115) + in.WantComma() + } + in.Delim(']') + } + case "CollegeInjuryReport": + if in.IsNull() { + in.Skip() + out.CollegeInjuryReport = nil + } else { + in.Delim('[') + if out.CollegeInjuryReport == nil { + if !in.IsDelim(']') { + out.CollegeInjuryReport = make([]structs.CollegePlayer, 0, 0) + } else { + out.CollegeInjuryReport = []structs.CollegePlayer{} + } + } else { + out.CollegeInjuryReport = (out.CollegeInjuryReport)[:0] + } + for !in.IsDelim(']') { + var v116 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v116) + out.CollegeInjuryReport = append(out.CollegeInjuryReport, v116) + in.WantComma() + } + in.Delim(']') + } + case "CollegeNotifications": + if in.IsNull() { + in.Skip() + out.CollegeNotifications = nil + } else { + in.Delim('[') + if out.CollegeNotifications == nil { + if !in.IsDelim(']') { + out.CollegeNotifications = make([]structs.Notification, 0, 0) + } else { + out.CollegeNotifications = []structs.Notification{} + } + } else { + out.CollegeNotifications = (out.CollegeNotifications)[:0] + } + for !in.IsDelim(']') { + var v117 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in, &v117) + out.CollegeNotifications = append(out.CollegeNotifications, v117) + in.WantComma() + } + in.Delim(']') + } + case "ProTeam": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, &out.ProTeam) + case "ProNotifications": + if in.IsNull() { + in.Skip() + out.ProNotifications = nil + } else { + in.Delim('[') + if out.ProNotifications == nil { + if !in.IsDelim(']') { + out.ProNotifications = make([]structs.Notification, 0, 0) + } else { + out.ProNotifications = []structs.Notification{} + } + } else { + out.ProNotifications = (out.ProNotifications)[:0] + } + for !in.IsDelim(']') { + var v118 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in, &v118) + out.ProNotifications = append(out.ProNotifications, v118) + in.WantComma() + } + in.Delim(']') + } + case "ProStandings": + if in.IsNull() { + in.Skip() + out.ProStandings = nil + } else { + in.Delim('[') + if out.ProStandings == nil { + if !in.IsDelim(']') { + out.ProStandings = make([]structs.NFLStandings, 0, 0) + } else { + out.ProStandings = []structs.NFLStandings{} + } + } else { + out.ProStandings = (out.ProStandings)[:0] + } + for !in.IsDelim(']') { + var v119 structs.NFLStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v119) + out.ProStandings = append(out.ProStandings, v119) + in.WantComma() + } + in.Delim(']') + } + case "AllProGames": + if in.IsNull() { + in.Skip() + out.AllProGames = nil + } else { + in.Delim('[') + if out.AllProGames == nil { + if !in.IsDelim(']') { + out.AllProGames = make([]structs.NFLGame, 0, 0) + } else { + out.AllProGames = []structs.NFLGame{} + } + } else { + out.AllProGames = (out.AllProGames)[:0] + } + for !in.IsDelim(']') { + var v120 structs.NFLGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in, &v120) + out.AllProGames = append(out.AllProGames, v120) + in.WantComma() + } + in.Delim(']') + } + case "PollSubmission": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &out.PollSubmission) + case "TopNFLPassers": + if in.IsNull() { + in.Skip() + out.TopNFLPassers = nil + } else { + in.Delim('[') + if out.TopNFLPassers == nil { + if !in.IsDelim(']') { + out.TopNFLPassers = make([]structs.NFLPlayer, 0, 0) + } else { + out.TopNFLPassers = []structs.NFLPlayer{} + } + } else { + out.TopNFLPassers = (out.TopNFLPassers)[:0] + } + for !in.IsDelim(']') { + var v121 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v121) + out.TopNFLPassers = append(out.TopNFLPassers, v121) + in.WantComma() + } + in.Delim(']') + } + case "TopNFLRushers": + if in.IsNull() { + in.Skip() + out.TopNFLRushers = nil + } else { + in.Delim('[') + if out.TopNFLRushers == nil { + if !in.IsDelim(']') { + out.TopNFLRushers = make([]structs.NFLPlayer, 0, 0) + } else { + out.TopNFLRushers = []structs.NFLPlayer{} + } + } else { + out.TopNFLRushers = (out.TopNFLRushers)[:0] + } + for !in.IsDelim(']') { + var v122 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v122) + out.TopNFLRushers = append(out.TopNFLRushers, v122) + in.WantComma() + } + in.Delim(']') + } + case "TopNFLReceivers": + if in.IsNull() { + in.Skip() + out.TopNFLReceivers = nil + } else { + in.Delim('[') + if out.TopNFLReceivers == nil { + if !in.IsDelim(']') { + out.TopNFLReceivers = make([]structs.NFLPlayer, 0, 0) + } else { + out.TopNFLReceivers = []structs.NFLPlayer{} + } + } else { + out.TopNFLReceivers = (out.TopNFLReceivers)[:0] + } + for !in.IsDelim(']') { + var v123 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v123) + out.TopNFLReceivers = append(out.TopNFLReceivers, v123) + in.WantComma() + } + in.Delim(']') + } + case "ProRosterMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.ProRosterMap = make(map[uint][]structs.NFLPlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v124 []structs.NFLPlayer + if in.IsNull() { + in.Skip() + v124 = nil + } else { + in.Delim('[') + if v124 == nil { + if !in.IsDelim(']') { + v124 = make([]structs.NFLPlayer, 0, 0) + } else { + v124 = []structs.NFLPlayer{} + } + } else { + v124 = (v124)[:0] + } + for !in.IsDelim(']') { + var v125 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v125) + v124 = append(v124, v125) + in.WantComma() + } + in.Delim(']') + } + (out.ProRosterMap)[key] = v124 + in.WantComma() + } + in.Delim('}') + } + case "ProInjuryReport": + if in.IsNull() { + in.Skip() + out.ProInjuryReport = nil + } else { + in.Delim('[') + if out.ProInjuryReport == nil { + if !in.IsDelim(']') { + out.ProInjuryReport = make([]structs.NFLPlayer, 0, 0) + } else { + out.ProInjuryReport = []structs.NFLPlayer{} + } + } else { + out.ProInjuryReport = (out.ProInjuryReport)[:0] + } + for !in.IsDelim(']') { + var v126 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v126) + out.ProInjuryReport = append(out.ProInjuryReport, v126) + in.WantComma() + } + in.Delim(']') + } + case "PracticeSquadPlayers": + if in.IsNull() { + in.Skip() + out.PracticeSquadPlayers = nil + } else { + in.Delim('[') + if out.PracticeSquadPlayers == nil { + if !in.IsDelim(']') { + out.PracticeSquadPlayers = make([]structs.NFLPlayer, 0, 0) + } else { + out.PracticeSquadPlayers = []structs.NFLPlayer{} + } + } else { + out.PracticeSquadPlayers = (out.PracticeSquadPlayers)[:0] + } + for !in.IsDelim(']') { + var v127 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v127) + out.PracticeSquadPlayers = append(out.PracticeSquadPlayers, v127) + in.WantComma() + } + in.Delim(']') + } + case "CapsheetMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.CapsheetMap = make(map[uint]structs.NFLCapsheet) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v128 structs.NFLCapsheet + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v128) + (out.CapsheetMap)[key] = v128 + in.WantComma() + } + in.Delim('}') + } + case "RetiredPlayers": + if in.IsNull() { + in.Skip() + out.RetiredPlayers = nil + } else { + in.Delim('[') + if out.RetiredPlayers == nil { + if !in.IsDelim(']') { + out.RetiredPlayers = make([]structs.NFLRetiredPlayer, 0, 0) + } else { + out.RetiredPlayers = []structs.NFLRetiredPlayer{} + } + } else { + out.RetiredPlayers = (out.RetiredPlayers)[:0] + } + for !in.IsDelim(']') { + var v129 structs.NFLRetiredPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in, &v129) + out.RetiredPlayers = append(out.RetiredPlayers, v129) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer, in BootstrapDataLanding) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegeTeam\":" + out.RawString(prefix[1:]) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, in.CollegeTeam) + } + { + const prefix string = ",\"CollegeRosterMap\":" + out.RawString(prefix) + if in.CollegeRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v130First := true + for v130Name, v130Value := range in.CollegeRosterMap { + if v130First { + v130First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v130Name)) + out.RawByte(':') + if v130Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v131, v132 := range v130Value { + if v131 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v132) + } + out.RawByte(']') + } + } + out.RawByte('}') + } + } + { + const prefix string = ",\"CollegeStandings\":" + out.RawString(prefix) + if in.CollegeStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v133, v134 := range in.CollegeStandings { + if v133 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v134) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"AllCollegeGames\":" + out.RawString(prefix) + if in.AllCollegeGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v135, v136 := range in.AllCollegeGames { + if v135 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v136) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"OfficialPolls\":" + out.RawString(prefix) + if in.OfficialPolls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v137, v138 := range in.OfficialPolls { + if v137 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v138) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopCFBPassers\":" + out.RawString(prefix) + if in.TopCFBPassers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v139, v140 := range in.TopCFBPassers { + if v139 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v140) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopCFBRushers\":" + out.RawString(prefix) + if in.TopCFBRushers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v141, v142 := range in.TopCFBRushers { + if v141 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v142) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopCFBReceivers\":" + out.RawString(prefix) + if in.TopCFBReceivers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v143, v144 := range in.TopCFBReceivers { + if v143 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v144) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"PortalPlayers\":" + out.RawString(prefix) + if in.PortalPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v145, v146 := range in.PortalPlayers { + if v145 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v146) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeInjuryReport\":" + out.RawString(prefix) + if in.CollegeInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v147, v148 := range in.CollegeInjuryReport { + if v147 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v148) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CollegeNotifications\":" + out.RawString(prefix) + if in.CollegeNotifications == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v149, v150 := range in.CollegeNotifications { + if v149 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out, v150) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ProTeam\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, in.ProTeam) + } + { + const prefix string = ",\"ProNotifications\":" + out.RawString(prefix) + if in.ProNotifications == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v151, v152 := range in.ProNotifications { + if v151 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out, v152) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ProStandings\":" + out.RawString(prefix) + if in.ProStandings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v153, v154 := range in.ProStandings { + if v153 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v154) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"AllProGames\":" + out.RawString(prefix) + if in.AllProGames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v155, v156 := range in.AllProGames { + if v155 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out, v156) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"PollSubmission\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, in.PollSubmission) + } + { + const prefix string = ",\"TopNFLPassers\":" + out.RawString(prefix) + if in.TopNFLPassers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v157, v158 := range in.TopNFLPassers { + if v157 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v158) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopNFLRushers\":" + out.RawString(prefix) + if in.TopNFLRushers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v159, v160 := range in.TopNFLRushers { + if v159 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v160) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"TopNFLReceivers\":" + out.RawString(prefix) + if in.TopNFLReceivers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v161, v162 := range in.TopNFLReceivers { + if v161 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v162) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ProRosterMap\":" + out.RawString(prefix) + if in.ProRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v163First := true + for v163Name, v163Value := range in.ProRosterMap { + if v163First { + v163First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v163Name)) + out.RawByte(':') + if v163Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v164, v165 := range v163Value { + if v164 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v165) + } + out.RawByte(']') + } + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ProInjuryReport\":" + out.RawString(prefix) + if in.ProInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v166, v167 := range in.ProInjuryReport { + if v166 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v167) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"PracticeSquadPlayers\":" + out.RawString(prefix) + if in.PracticeSquadPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v168, v169 := range in.PracticeSquadPlayers { + if v168 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v169) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"CapsheetMap\":" + out.RawString(prefix) + if in.CapsheetMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v170First := true + for v170Name, v170Value := range in.CapsheetMap { + if v170First { + v170First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v170Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v170Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"RetiredPlayers\":" + out.RawString(prefix) + if in.RetiredPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v171, v172 := range in.RetiredPlayers { + if v171 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out, v172) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataLanding) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataLanding) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataLanding) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataLanding) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in *jlexer.Lexer, out *structs.NFLRetiredPlayer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "CollegeID": + out.CollegeID = uint(in.Uint()) + case "College": + out.College = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Experience": + out.Experience = uint(in.Uint()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "Hometown": + out.Hometown = string(in.String()) + case "State": + out.State = string(in.String()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsPracticeSquad": + out.IsPracticeSquad = bool(in.Bool()) + case "IsFreeAgent": + out.IsFreeAgent = bool(in.Bool()) + case "IsWaived": + out.IsWaived = bool(in.Bool()) + case "IsOnTradeBlock": + out.IsOnTradeBlock = bool(in.Bool()) + case "IsAcceptingOffers": + out.IsAcceptingOffers = bool(in.Bool()) + case "IsNegotiating": + out.IsNegotiating = bool(in.Bool()) + case "NegotiationRound": + out.NegotiationRound = uint(in.Uint()) + case "SigningRound": + out.SigningRound = uint(in.Uint()) + case "MinimumValue": + out.MinimumValue = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "DraftedTeamID": + out.DraftedTeamID = uint(in.Uint()) + case "DraftedTeam": + out.DraftedTeam = string(in.String()) + case "DraftedRound": + out.DraftedRound = uint(in.Uint()) + case "DraftPickID": + out.DraftPickID = uint(in.Uint()) + case "DraftedPick": + out.DraftedPick = uint(in.Uint()) + case "ShowLetterGrade": + out.ShowLetterGrade = bool(in.Bool()) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "Rejections": + out.Rejections = int(in.Int()) + case "ProBowls": + out.ProBowls = uint8(in.Uint8()) + case "TagType": + out.TagType = uint8(in.Uint8()) + case "Stats": + if in.IsNull() { + in.Skip() + out.Stats = nil + } else { + in.Delim('[') + if out.Stats == nil { + if !in.IsDelim(']') { + out.Stats = make([]structs.NFLPlayerStats, 0, 0) + } else { + out.Stats = []structs.NFLPlayerStats{} + } + } else { + out.Stats = (out.Stats)[:0] + } + for !in.IsDelim(']') { + var v173 structs.NFLPlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v173) + out.Stats = append(out.Stats, v173) + in.WantComma() + } + in.Delim(']') + } + case "SeasonStats": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &out.SeasonStats) + case "Contract": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &out.Contract) + case "Offers": + if in.IsNull() { + in.Skip() + out.Offers = nil + } else { + in.Delim('[') + if out.Offers == nil { + if !in.IsDelim(']') { + out.Offers = make([]structs.FreeAgencyOffer, 0, 0) + } else { + out.Offers = []structs.FreeAgencyOffer{} + } + } else { + out.Offers = (out.Offers)[:0] + } + for !in.IsDelim(']') { + var v174 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v174) + out.Offers = append(out.Offers, v174) + in.WantComma() + } + in.Delim(']') + } + case "WaiverOffers": + if in.IsNull() { + in.Skip() + out.WaiverOffers = nil + } else { + in.Delim('[') + if out.WaiverOffers == nil { + if !in.IsDelim(']') { + out.WaiverOffers = make([]structs.NFLWaiverOffer, 0, 1) + } else { + out.WaiverOffers = []structs.NFLWaiverOffer{} + } + } else { + out.WaiverOffers = (out.WaiverOffers)[:0] + } + for !in.IsDelim(']') { + var v175 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v175) + out.WaiverOffers = append(out.WaiverOffers, v175) + in.WantComma() + } + in.Delim(']') + } + case "Extensions": + if in.IsNull() { + in.Skip() + out.Extensions = nil + } else { + in.Delim('[') + if out.Extensions == nil { + if !in.IsDelim(']') { + out.Extensions = make([]structs.NFLExtensionOffer, 0, 0) + } else { + out.Extensions = []structs.NFLExtensionOffer{} + } + } else { + out.Extensions = (out.Extensions)[:0] + } + for !in.IsDelim(']') { + var v176 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v176) + out.Extensions = append(out.Extensions, v176) + in.WantComma() + } + in.Delim(']') + } + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Age": + out.Age = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "Overall": + out.Overall = int(in.Int()) + case "Stamina": + out.Stamina = int(in.Int()) + case "Injury": + out.Injury = int(in.Int()) + case "FootballIQ": + out.FootballIQ = int(in.Int()) + case "Speed": + out.Speed = int(in.Int()) + case "Carrying": + out.Carrying = int(in.Int()) + case "Agility": + out.Agility = int(in.Int()) + case "Catching": + out.Catching = int(in.Int()) + case "RouteRunning": + out.RouteRunning = int(in.Int()) + case "ZoneCoverage": + out.ZoneCoverage = int(in.Int()) + case "ManCoverage": + out.ManCoverage = int(in.Int()) + case "Strength": + out.Strength = int(in.Int()) + case "Tackle": + out.Tackle = int(in.Int()) + case "PassBlock": + out.PassBlock = int(in.Int()) + case "RunBlock": + out.RunBlock = int(in.Int()) + case "PassRush": + out.PassRush = int(in.Int()) + case "RunDefense": + out.RunDefense = int(in.Int()) + case "ThrowPower": + out.ThrowPower = int(in.Int()) + case "ThrowAccuracy": + out.ThrowAccuracy = int(in.Int()) + case "KickAccuracy": + out.KickAccuracy = int(in.Int()) + case "KickPower": + out.KickPower = int(in.Int()) + case "PuntAccuracy": + out.PuntAccuracy = int(in.Int()) + case "PuntPower": + out.PuntPower = int(in.Int()) + case "Progression": + out.Progression = int(in.Int()) + case "Discipline": + out.Discipline = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out *jwriter.Writer, in structs.NFLRetiredPlayer) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Int(int(in.TeamID)) + } + { + const prefix string = ",\"CollegeID\":" + out.RawString(prefix) + out.Uint(uint(in.CollegeID)) + } + { + const prefix string = ",\"College\":" + out.RawString(prefix) + out.String(string(in.College)) + } + { + const prefix string = ",\"TeamAbbr\":" + out.RawString(prefix) + out.String(string(in.TeamAbbr)) + } + { + const prefix string = ",\"Experience\":" + out.RawString(prefix) + out.Uint(uint(in.Experience)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"Hometown\":" + out.RawString(prefix) + out.String(string(in.Hometown)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsPracticeSquad\":" + out.RawString(prefix) + out.Bool(bool(in.IsPracticeSquad)) + } + { + const prefix string = ",\"IsFreeAgent\":" + out.RawString(prefix) + out.Bool(bool(in.IsFreeAgent)) + } + { + const prefix string = ",\"IsWaived\":" + out.RawString(prefix) + out.Bool(bool(in.IsWaived)) + } + { + const prefix string = ",\"IsOnTradeBlock\":" + out.RawString(prefix) + out.Bool(bool(in.IsOnTradeBlock)) + } + { + const prefix string = ",\"IsAcceptingOffers\":" + out.RawString(prefix) + out.Bool(bool(in.IsAcceptingOffers)) + } + { + const prefix string = ",\"IsNegotiating\":" + out.RawString(prefix) + out.Bool(bool(in.IsNegotiating)) + } + { + const prefix string = ",\"NegotiationRound\":" + out.RawString(prefix) + out.Uint(uint(in.NegotiationRound)) + } + { + const prefix string = ",\"SigningRound\":" + out.RawString(prefix) + out.Uint(uint(in.SigningRound)) + } + { + const prefix string = ",\"MinimumValue\":" + out.RawString(prefix) + out.Float64(float64(in.MinimumValue)) + } + { + const prefix string = ",\"AAV\":" + out.RawString(prefix) + out.Float64(float64(in.AAV)) + } + { + const prefix string = ",\"DraftedTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedTeamID)) + } + { + const prefix string = ",\"DraftedTeam\":" + out.RawString(prefix) + out.String(string(in.DraftedTeam)) + } + { + const prefix string = ",\"DraftedRound\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedRound)) + } + { + const prefix string = ",\"DraftPickID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftPickID)) + } + { + const prefix string = ",\"DraftedPick\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedPick)) + } + { + const prefix string = ",\"ShowLetterGrade\":" + out.RawString(prefix) + out.Bool(bool(in.ShowLetterGrade)) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"Rejections\":" + out.RawString(prefix) + out.Int(int(in.Rejections)) + } + { + const prefix string = ",\"ProBowls\":" + out.RawString(prefix) + out.Uint8(uint8(in.ProBowls)) + } + { + const prefix string = ",\"TagType\":" + out.RawString(prefix) + out.Uint8(uint8(in.TagType)) + } + { + const prefix string = ",\"Stats\":" + out.RawString(prefix) + if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v177, v178 := range in.Stats { + if v177 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v178) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"SeasonStats\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, in.SeasonStats) + } + { + const prefix string = ",\"Contract\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, in.Contract) + } + { + const prefix string = ",\"Offers\":" + out.RawString(prefix) + if in.Offers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v179, v180 := range in.Offers { + if v179 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v180) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"WaiverOffers\":" + out.RawString(prefix) + if in.WaiverOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v181, v182 := range in.WaiverOffers { + if v181 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v182) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"Extensions\":" + out.RawString(prefix) + if in.Extensions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v183, v184 := range in.Extensions { + if v183 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v184) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"Overall\":" + out.RawString(prefix) + out.Int(int(in.Overall)) + } + { + const prefix string = ",\"Stamina\":" + out.RawString(prefix) + out.Int(int(in.Stamina)) + } + { + const prefix string = ",\"Injury\":" + out.RawString(prefix) + out.Int(int(in.Injury)) + } + { + const prefix string = ",\"FootballIQ\":" + out.RawString(prefix) + out.Int(int(in.FootballIQ)) + } + { + const prefix string = ",\"Speed\":" + out.RawString(prefix) + out.Int(int(in.Speed)) + } + { + const prefix string = ",\"Carrying\":" + out.RawString(prefix) + out.Int(int(in.Carrying)) + } + { + const prefix string = ",\"Agility\":" + out.RawString(prefix) + out.Int(int(in.Agility)) + } + { + const prefix string = ",\"Catching\":" + out.RawString(prefix) + out.Int(int(in.Catching)) + } + { + const prefix string = ",\"RouteRunning\":" + out.RawString(prefix) + out.Int(int(in.RouteRunning)) + } + { + const prefix string = ",\"ZoneCoverage\":" + out.RawString(prefix) + out.Int(int(in.ZoneCoverage)) + } + { + const prefix string = ",\"ManCoverage\":" + out.RawString(prefix) + out.Int(int(in.ManCoverage)) + } + { + const prefix string = ",\"Strength\":" + out.RawString(prefix) + out.Int(int(in.Strength)) + } + { + const prefix string = ",\"Tackle\":" + out.RawString(prefix) + out.Int(int(in.Tackle)) + } + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int(int(in.PassBlock)) + } + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int(int(in.RunBlock)) + } + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int(int(in.PassRush)) + } + { + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int(int(in.RunDefense)) + } + { + const prefix string = ",\"ThrowPower\":" + out.RawString(prefix) + out.Int(int(in.ThrowPower)) + } + { + const prefix string = ",\"ThrowAccuracy\":" + out.RawString(prefix) + out.Int(int(in.ThrowAccuracy)) + } + { + const prefix string = ",\"KickAccuracy\":" + out.RawString(prefix) + out.Int(int(in.KickAccuracy)) + } + { + const prefix string = ",\"KickPower\":" + out.RawString(prefix) + out.Int(int(in.KickPower)) + } + { + const prefix string = ",\"PuntAccuracy\":" + out.RawString(prefix) + out.Int(int(in.PuntAccuracy)) + } + { + const prefix string = ",\"PuntPower\":" + out.RawString(prefix) + out.Int(int(in.PuntPower)) + } + { + const prefix string = ",\"Progression\":" + out.RawString(prefix) + out.Int(int(in.Progression)) + } + { + const prefix string = ",\"Discipline\":" + out.RawString(prefix) + out.Int(int(in.Discipline)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"FreeAgency\":" + out.RawString(prefix) + out.String(string(in.FreeAgency)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"IsInjured\":" + out.RawString(prefix) + out.Bool(bool(in.IsInjured)) + } + { + const prefix string = ",\"InjuryName\":" + out.RawString(prefix) + out.String(string(in.InjuryName)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryReserve\":" + out.RawString(prefix) + out.Bool(bool(in.InjuryReserve)) + } + { + const prefix string = ",\"PrimeAge\":" + out.RawString(prefix) + out.Uint(uint(in.PrimeAge)) + } + { + const prefix string = ",\"Clutch\":" + out.RawString(prefix) + out.Int(int(in.Clutch)) + } + { + const prefix string = ",\"Shotgun\":" + out.RawString(prefix) + out.Int(int(in.Shotgun)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"ArchetypeTwo\":" + out.RawString(prefix) + out.String(string(in.ArchetypeTwo)) + } + { + const prefix string = ",\"RelativeID\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeID)) + } + { + const prefix string = ",\"RelativeType\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeType)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in *jlexer.Lexer, out *structs.NFLGame) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "WeekID": + out.WeekID = int(in.Int()) + case "Week": + out.Week = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "HomeTeamID": + out.HomeTeamID = int(in.Int()) + case "HomeTeam": + out.HomeTeam = string(in.String()) + case "HomeTeamCoach": + out.HomeTeamCoach = string(in.String()) + case "HomeTeamWin": + out.HomeTeamWin = bool(in.Bool()) + case "AwayTeamID": + out.AwayTeamID = int(in.Int()) + case "AwayTeam": + out.AwayTeam = string(in.String()) + case "AwayTeamCoach": + out.AwayTeamCoach = string(in.String()) + case "AwayTeamWin": + out.AwayTeamWin = bool(in.Bool()) + case "MVP": + out.MVP = string(in.String()) + case "HomeTeamScore": + out.HomeTeamScore = int(in.Int()) + case "AwayTeamScore": + out.AwayTeamScore = int(in.Int()) + case "TimeSlot": + out.TimeSlot = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Region": + out.Region = string(in.String()) + case "LowTemp": + out.LowTemp = float64(in.Float64()) + case "HighTemp": + out.HighTemp = float64(in.Float64()) + case "GameTemp": + out.GameTemp = float64(in.Float64()) + case "Cloud": + out.Cloud = string(in.String()) + case "Precip": + out.Precip = string(in.String()) + case "WindSpeed": + out.WindSpeed = float64(in.Float64()) + case "WindCategory": + out.WindCategory = string(in.String()) + case "IsNeutral": + out.IsNeutral = bool(in.Bool()) + case "IsDomed": + out.IsDomed = bool(in.Bool()) + case "IsNightGame": + out.IsNightGame = bool(in.Bool()) + case "IsPlayoffGame": + out.IsPlayoffGame = bool(in.Bool()) + case "IsRivalryGame": + out.IsRivalryGame = bool(in.Bool()) + case "IsConference": + out.IsConference = bool(in.Bool()) + case "IsDivisional": + out.IsDivisional = bool(in.Bool()) + case "IsConferenceChampionship": + out.IsConferenceChampionship = bool(in.Bool()) + case "IsSuperBowl": + out.IsSuperBowl = bool(in.Bool()) + case "GameComplete": + out.GameComplete = bool(in.Bool()) + case "IsPreseasonGame": + out.IsPreseasonGame = bool(in.Bool()) + case "GameTitle": + out.GameTitle = string(in.String()) + case "NextGameID": + out.NextGameID = uint(in.Uint()) + case "NextGameHOA": + out.NextGameHOA = string(in.String()) + case "HomePreviousBye": + out.HomePreviousBye = bool(in.Bool()) + case "AwayPreviousBye": + out.AwayPreviousBye = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out *jwriter.Writer, in structs.NFLGame) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"WeekID\":" + out.RawString(prefix[1:]) + out.Int(int(in.WeekID)) + } + { + const prefix string = ",\"Week\":" + out.RawString(prefix) + out.Int(int(in.Week)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Int(int(in.SeasonID)) + } + { + const prefix string = ",\"HomeTeamID\":" + out.RawString(prefix) + out.Int(int(in.HomeTeamID)) + } + { + const prefix string = ",\"HomeTeam\":" + out.RawString(prefix) + out.String(string(in.HomeTeam)) + } + { + const prefix string = ",\"HomeTeamCoach\":" + out.RawString(prefix) + out.String(string(in.HomeTeamCoach)) + } + { + const prefix string = ",\"HomeTeamWin\":" + out.RawString(prefix) + out.Bool(bool(in.HomeTeamWin)) + } + { + const prefix string = ",\"AwayTeamID\":" + out.RawString(prefix) + out.Int(int(in.AwayTeamID)) + } + { + const prefix string = ",\"AwayTeam\":" + out.RawString(prefix) + out.String(string(in.AwayTeam)) + } + { + const prefix string = ",\"AwayTeamCoach\":" + out.RawString(prefix) + out.String(string(in.AwayTeamCoach)) + } + { + const prefix string = ",\"AwayTeamWin\":" + out.RawString(prefix) + out.Bool(bool(in.AwayTeamWin)) + } + { + const prefix string = ",\"MVP\":" + out.RawString(prefix) + out.String(string(in.MVP)) + } + { + const prefix string = ",\"HomeTeamScore\":" + out.RawString(prefix) + out.Int(int(in.HomeTeamScore)) + } + { + const prefix string = ",\"AwayTeamScore\":" + out.RawString(prefix) + out.Int(int(in.AwayTeamScore)) + } + { + const prefix string = ",\"TimeSlot\":" + out.RawString(prefix) + out.String(string(in.TimeSlot)) + } + { + const prefix string = ",\"StadiumID\":" + out.RawString(prefix) + out.Uint(uint(in.StadiumID)) + } + { + const prefix string = ",\"Stadium\":" + out.RawString(prefix) + out.String(string(in.Stadium)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"Region\":" + out.RawString(prefix) + out.String(string(in.Region)) + } + { + const prefix string = ",\"LowTemp\":" + out.RawString(prefix) + out.Float64(float64(in.LowTemp)) + } + { + const prefix string = ",\"HighTemp\":" + out.RawString(prefix) + out.Float64(float64(in.HighTemp)) + } + { + const prefix string = ",\"GameTemp\":" + out.RawString(prefix) + out.Float64(float64(in.GameTemp)) + } + { + const prefix string = ",\"Cloud\":" + out.RawString(prefix) + out.String(string(in.Cloud)) + } + { + const prefix string = ",\"Precip\":" + out.RawString(prefix) + out.String(string(in.Precip)) + } + { + const prefix string = ",\"WindSpeed\":" + out.RawString(prefix) + out.Float64(float64(in.WindSpeed)) + } + { + const prefix string = ",\"WindCategory\":" + out.RawString(prefix) + out.String(string(in.WindCategory)) + } + { + const prefix string = ",\"IsNeutral\":" + out.RawString(prefix) + out.Bool(bool(in.IsNeutral)) + } + { + const prefix string = ",\"IsDomed\":" + out.RawString(prefix) + out.Bool(bool(in.IsDomed)) + } + { + const prefix string = ",\"IsNightGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsNightGame)) + } + { + const prefix string = ",\"IsPlayoffGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsPlayoffGame)) + } + { + const prefix string = ",\"IsRivalryGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsRivalryGame)) + } + { + const prefix string = ",\"IsConference\":" + out.RawString(prefix) + out.Bool(bool(in.IsConference)) + } + { + const prefix string = ",\"IsDivisional\":" + out.RawString(prefix) + out.Bool(bool(in.IsDivisional)) + } + { + const prefix string = ",\"IsConferenceChampionship\":" + out.RawString(prefix) + out.Bool(bool(in.IsConferenceChampionship)) + } + { + const prefix string = ",\"IsSuperBowl\":" + out.RawString(prefix) + out.Bool(bool(in.IsSuperBowl)) + } + { + const prefix string = ",\"GameComplete\":" + out.RawString(prefix) + out.Bool(bool(in.GameComplete)) + } + { + const prefix string = ",\"IsPreseasonGame\":" + out.RawString(prefix) + out.Bool(bool(in.IsPreseasonGame)) + } + { + const prefix string = ",\"GameTitle\":" + out.RawString(prefix) + out.String(string(in.GameTitle)) + } + { + const prefix string = ",\"NextGameID\":" + out.RawString(prefix) + out.Uint(uint(in.NextGameID)) + } + { + const prefix string = ",\"NextGameHOA\":" + out.RawString(prefix) + out.String(string(in.NextGameHOA)) + } + { + const prefix string = ",\"HomePreviousBye\":" + out.RawString(prefix) + out.Bool(bool(in.HomePreviousBye)) + } + { + const prefix string = ",\"AwayPreviousBye\":" + out.RawString(prefix) + out.Bool(bool(in.AwayPreviousBye)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs41(in *jlexer.Lexer, out *structs.Notification) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "League": + out.League = string(in.String()) + case "NotificationType": + out.NotificationType = string(in.String()) + case "Message": + out.Message = string(in.String()) + case "Subject": + out.Subject = string(in.String()) + case "IsRead": + out.IsRead = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.DeletedAt).UnmarshalJSON(data)) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs41(out *jwriter.Writer, in structs.Notification) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"League\":" + out.RawString(prefix) + out.String(string(in.League)) + } + { + const prefix string = ",\"NotificationType\":" + out.RawString(prefix) + out.String(string(in.NotificationType)) + } + { + const prefix string = ",\"Message\":" + out.RawString(prefix) + out.String(string(in.Message)) + } + { + const prefix string = ",\"Subject\":" + out.RawString(prefix) + out.String(string(in.Subject)) + } + { + const prefix string = ",\"IsRead\":" + out.RawString(prefix) + out.Bool(bool(in.IsRead)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + out.Raw((in.DeletedAt).MarshalJSON()) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, out *BootstrapDataGameplan) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "CollegeGameplanMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.CollegeGameplanMap = make(map[uint]structs.CollegeGameplan) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v185 structs.CollegeGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v185) + (out.CollegeGameplanMap)[key] = v185 + in.WantComma() + } + in.Delim('}') + } + case "CollegeDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &out.CollegeDepthChart) + case "ProGameplanMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.ProGameplanMap = make(map[uint]structs.NFLGameplan) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v186 structs.NFLGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v186) + (out.ProGameplanMap)[key] = v186 + in.WantComma() + } + in.Delim('}') + } + case "ProDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &out.ProDepthChart) + case "CollegeDepthChartMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.CollegeDepthChartMap = make(map[uint]structs.CollegeTeamDepthChart) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v187 structs.CollegeTeamDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v187) + (out.CollegeDepthChartMap)[key] = v187 + in.WantComma() + } + in.Delim('}') + } + case "ProDepthChartMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.ProDepthChartMap = make(map[uint]structs.NFLDepthChart) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v188 structs.NFLDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v188) + (out.ProDepthChartMap)[key] = v188 + in.WantComma() + } + in.Delim('}') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer, in BootstrapDataGameplan) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"CollegeGameplanMap\":" + out.RawString(prefix[1:]) + if in.CollegeGameplanMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v189First := true + for v189Name, v189Value := range in.CollegeGameplanMap { + if v189First { + v189First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v189Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v189Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"CollegeDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, in.CollegeDepthChart) + } + { + const prefix string = ",\"ProGameplanMap\":" + out.RawString(prefix) + if in.ProGameplanMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v190First := true + for v190Name, v190Value := range in.ProGameplanMap { + if v190First { + v190First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v190Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v190Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ProDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, in.ProDepthChart) + } + { + const prefix string = ",\"CollegeDepthChartMap\":" + out.RawString(prefix) + if in.CollegeDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v191First := true + for v191Name, v191Value := range in.CollegeDepthChartMap { + if v191First { + v191First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v191Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v191Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ProDepthChartMap\":" + out.RawString(prefix) + if in.ProDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v192First := true + for v192Name, v192Value := range in.ProDepthChartMap { + if v192First { + v192First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v192Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v192Value) + } + out.RawByte('}') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataGameplan) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataGameplan) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataGameplan) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataGameplan) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, out *BootstrapDataFreeAgency) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "FreeAgents": + if in.IsNull() { + in.Skip() + out.FreeAgents = nil + } else { + in.Delim('[') + if out.FreeAgents == nil { + if !in.IsDelim(']') { + out.FreeAgents = make([]structs.NFLPlayer, 0, 0) + } else { + out.FreeAgents = []structs.NFLPlayer{} + } + } else { + out.FreeAgents = (out.FreeAgents)[:0] + } + for !in.IsDelim(']') { + var v193 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v193) + out.FreeAgents = append(out.FreeAgents, v193) + in.WantComma() + } + in.Delim(']') + } + case "WaiverPlayers": + if in.IsNull() { + in.Skip() + out.WaiverPlayers = nil + } else { + in.Delim('[') + if out.WaiverPlayers == nil { + if !in.IsDelim(']') { + out.WaiverPlayers = make([]structs.NFLPlayer, 0, 0) + } else { + out.WaiverPlayers = []structs.NFLPlayer{} + } + } else { + out.WaiverPlayers = (out.WaiverPlayers)[:0] + } + for !in.IsDelim(']') { + var v194 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v194) + out.WaiverPlayers = append(out.WaiverPlayers, v194) + in.WantComma() + } + in.Delim(']') + } + case "FreeAgentOffers": + if in.IsNull() { + in.Skip() + out.FreeAgentOffers = nil + } else { + in.Delim('[') + if out.FreeAgentOffers == nil { + if !in.IsDelim(']') { + out.FreeAgentOffers = make([]structs.FreeAgencyOffer, 0, 0) + } else { + out.FreeAgentOffers = []structs.FreeAgencyOffer{} + } + } else { + out.FreeAgentOffers = (out.FreeAgentOffers)[:0] + } + for !in.IsDelim(']') { + var v195 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v195) + out.FreeAgentOffers = append(out.FreeAgentOffers, v195) + in.WantComma() + } + in.Delim(']') + } + case "WaiverOffers": + if in.IsNull() { + in.Skip() + out.WaiverOffers = nil + } else { + in.Delim('[') + if out.WaiverOffers == nil { + if !in.IsDelim(']') { + out.WaiverOffers = make([]structs.NFLWaiverOffer, 0, 1) + } else { + out.WaiverOffers = []structs.NFLWaiverOffer{} + } + } else { + out.WaiverOffers = (out.WaiverOffers)[:0] + } + for !in.IsDelim(']') { + var v196 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v196) + out.WaiverOffers = append(out.WaiverOffers, v196) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer, in BootstrapDataFreeAgency) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"FreeAgents\":" + out.RawString(prefix[1:]) + if in.FreeAgents == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v197, v198 := range in.FreeAgents { + if v197 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v198) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"WaiverPlayers\":" + out.RawString(prefix) + if in.WaiverPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v199, v200 := range in.WaiverPlayers { + if v199 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v200) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"FreeAgentOffers\":" + out.RawString(prefix) + if in.FreeAgentOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v201, v202 := range in.FreeAgentOffers { + if v201 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v202) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"WaiverOffers\":" + out.RawString(prefix) + if in.WaiverOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v203, v204 := range in.WaiverOffers { + if v203 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v204) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataFreeAgency) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataFreeAgency) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataFreeAgency) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataFreeAgency) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out *BootstrapDataDraft) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLDraftees": + if in.IsNull() { + in.Skip() + out.NFLDraftees = nil + } else { + in.Delim('[') + if out.NFLDraftees == nil { + if !in.IsDelim(']') { + out.NFLDraftees = make([]models.NFLDraftee, 0, 0) + } else { + out.NFLDraftees = []models.NFLDraftee{} + } + } else { + out.NFLDraftees = (out.NFLDraftees)[:0] + } + for !in.IsDelim(']') { + var v205 models.NFLDraftee + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in, &v205) + out.NFLDraftees = append(out.NFLDraftees, v205) + in.WantComma() + } + in.Delim(']') + } + case "NFLWarRoomMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.NFLWarRoomMap = make(map[uint]models.NFLWarRoom) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v206 models.NFLWarRoom + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in, &v206) + (out.NFLWarRoomMap)[key] = v206 + in.WantComma() + } + in.Delim('}') + } + case "DraftScoutingProfileMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.DraftScoutingProfileMap = make(map[uint]models.ScoutingProfile) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v207 models.ScoutingProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v207) + (out.DraftScoutingProfileMap)[key] = v207 + in.WantComma() + } + in.Delim('}') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Writer, in BootstrapDataDraft) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"NFLDraftees\":" + out.RawString(prefix[1:]) + if in.NFLDraftees == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v208, v209 := range in.NFLDraftees { + if v208 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out, v209) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"NFLWarRoomMap\":" + out.RawString(prefix) + if in.NFLWarRoomMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v210First := true + for v210Name, v210Value := range in.NFLWarRoomMap { + if v210First { + v210First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v210Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out, v210Value) + } + out.RawByte('}') + } + } + { + const prefix string = ",\"DraftScoutingProfileMap\":" + out.RawString(prefix) + if in.DraftScoutingProfileMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v211First := true + for v211Name, v211Value := range in.DraftScoutingProfileMap { + if v211First { + v211First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v211Name)) + out.RawByte(':') + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v211Value) + } + out.RawByte('}') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataDraft) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataDraft) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataDraft) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataDraft) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in *jlexer.Lexer, out *models.ScoutingProfile) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "ShowAttribute1": + out.ShowAttribute1 = bool(in.Bool()) + case "ShowAttribute2": + out.ShowAttribute2 = bool(in.Bool()) + case "ShowAttribute3": + out.ShowAttribute3 = bool(in.Bool()) + case "ShowAttribute4": + out.ShowAttribute4 = bool(in.Bool()) + case "ShowAttribute5": + out.ShowAttribute5 = bool(in.Bool()) + case "ShowAttribute6": + out.ShowAttribute6 = bool(in.Bool()) + case "ShowAttribute7": + out.ShowAttribute7 = bool(in.Bool()) + case "ShowAttribute8": + out.ShowAttribute8 = bool(in.Bool()) + case "ShowPotential": + out.ShowPotential = bool(in.Bool()) + case "RemovedFromBoard": + out.RemovedFromBoard = bool(in.Bool()) + case "ShowCount": + out.ShowCount = uint(in.Uint()) + case "Draftee": + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in, &out.Draftee) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out *jwriter.Writer, in models.ScoutingProfile) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.PlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"ShowAttribute1\":" + out.RawString(prefix) + out.Bool(bool(in.ShowAttribute1)) + } + { + const prefix string = ",\"ShowAttribute2\":" + out.RawString(prefix) + out.Bool(bool(in.ShowAttribute2)) + } + { + const prefix string = ",\"ShowAttribute3\":" + out.RawString(prefix) + out.Bool(bool(in.ShowAttribute3)) + } + { + const prefix string = ",\"ShowAttribute4\":" + out.RawString(prefix) + out.Bool(bool(in.ShowAttribute4)) + } + { + const prefix string = ",\"ShowAttribute5\":" + out.RawString(prefix) + out.Bool(bool(in.ShowAttribute5)) + } + { + const prefix string = ",\"ShowAttribute6\":" + out.RawString(prefix) + out.Bool(bool(in.ShowAttribute6)) + } + { + const prefix string = ",\"ShowAttribute7\":" + out.RawString(prefix) + out.Bool(bool(in.ShowAttribute7)) + } + { + const prefix string = ",\"ShowAttribute8\":" + out.RawString(prefix) + out.Bool(bool(in.ShowAttribute8)) + } + { + const prefix string = ",\"ShowPotential\":" + out.RawString(prefix) + out.Bool(bool(in.ShowPotential)) + } + { + const prefix string = ",\"RemovedFromBoard\":" + out.RawString(prefix) + out.Bool(bool(in.RemovedFromBoard)) + } + { + const prefix string = ",\"ShowCount\":" + out.RawString(prefix) + out.Uint(uint(in.ShowCount)) + } + { + const prefix string = ",\"Draftee\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out, in.Draftee) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in *jlexer.Lexer, out *models.NFLWarRoom) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "ScoutingPoints": + out.ScoutingPoints = uint(in.Uint()) + case "SpentPoints": + out.SpentPoints = uint(in.Uint()) + case "DraftPicks": + if in.IsNull() { + in.Skip() + out.DraftPicks = nil + } else { + in.Delim('[') + if out.DraftPicks == nil { + if !in.IsDelim(']') { + out.DraftPicks = make([]structs.NFLDraftPick, 0, 0) + } else { + out.DraftPicks = []structs.NFLDraftPick{} + } + } else { + out.DraftPicks = (out.DraftPicks)[:0] + } + for !in.IsDelim(']') { + var v212 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v212) + out.DraftPicks = append(out.DraftPicks, v212) + in.WantComma() + } + in.Delim(']') + } + case "ScoutProfiles": + if in.IsNull() { + in.Skip() + out.ScoutProfiles = nil + } else { + in.Delim('[') + if out.ScoutProfiles == nil { + if !in.IsDelim(']') { + out.ScoutProfiles = make([]models.ScoutingProfile, 0, 0) + } else { + out.ScoutProfiles = []models.ScoutingProfile{} + } + } else { + out.ScoutProfiles = (out.ScoutProfiles)[:0] + } + for !in.IsDelim(']') { + var v213 models.ScoutingProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v213) + out.ScoutProfiles = append(out.ScoutProfiles, v213) + in.WantComma() + } + in.Delim(']') + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out *jwriter.Writer, in models.NFLWarRoom) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"ScoutingPoints\":" + out.RawString(prefix) + out.Uint(uint(in.ScoutingPoints)) + } + { + const prefix string = ",\"SpentPoints\":" + out.RawString(prefix) + out.Uint(uint(in.SpentPoints)) + } + { + const prefix string = ",\"DraftPicks\":" + out.RawString(prefix) + if in.DraftPicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v214, v215 := range in.DraftPicks { + if v214 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v215) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ScoutProfiles\":" + out.RawString(prefix) + if in.ScoutProfiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v216, v217 := range in.ScoutProfiles { + if v216 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v217) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in *jlexer.Lexer, out *models.NFLDraftee) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "CollegeID": + out.CollegeID = uint(in.Uint()) + case "College": + out.College = string(in.String()) + case "DraftedTeamID": + out.DraftedTeamID = uint(in.Uint()) + case "DraftedTeam": + out.DraftedTeam = string(in.String()) + case "DraftedRound": + out.DraftedRound = uint(in.Uint()) + case "DraftPickID": + out.DraftPickID = uint(in.Uint()) + case "DraftedPick": + out.DraftedPick = uint(in.Uint()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "OverallGrade": + out.OverallGrade = string(in.String()) + case "StaminaGrade": + out.StaminaGrade = string(in.String()) + case "InjuryGrade": + out.InjuryGrade = string(in.String()) + case "FootballIQGrade": + out.FootballIQGrade = string(in.String()) + case "SpeedGrade": + out.SpeedGrade = string(in.String()) + case "CarryingGrade": + out.CarryingGrade = string(in.String()) + case "AgilityGrade": + out.AgilityGrade = string(in.String()) + case "CatchingGrade": + out.CatchingGrade = string(in.String()) + case "RouteRunningGrade": + out.RouteRunningGrade = string(in.String()) + case "ZoneCoverageGrade": + out.ZoneCoverageGrade = string(in.String()) + case "ManCoverageGrade": + out.ManCoverageGrade = string(in.String()) + case "StrengthGrade": + out.StrengthGrade = string(in.String()) + case "TackleGrade": + out.TackleGrade = string(in.String()) + case "PassBlockGrade": + out.PassBlockGrade = string(in.String()) + case "RunBlockGrade": + out.RunBlockGrade = string(in.String()) + case "PassRushGrade": + out.PassRushGrade = string(in.String()) + case "RunDefenseGrade": + out.RunDefenseGrade = string(in.String()) + case "ThrowPowerGrade": + out.ThrowPowerGrade = string(in.String()) + case "ThrowAccuracyGrade": + out.ThrowAccuracyGrade = string(in.String()) + case "KickAccuracyGrade": + out.KickAccuracyGrade = string(in.String()) + case "KickPowerGrade": + out.KickPowerGrade = string(in.String()) + case "PuntAccuracyGrade": + out.PuntAccuracyGrade = string(in.String()) + case "PuntPowerGrade": + out.PuntPowerGrade = string(in.String()) + case "BoomOrBust": + out.BoomOrBust = bool(in.Bool()) + case "BoomOrBustStatus": + out.BoomOrBustStatus = string(in.String()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int(in.Int()) + case "Weight": + out.Weight = int(in.Int()) + case "Age": + out.Age = int(in.Int()) + case "Stars": + out.Stars = int(in.Int()) + case "Overall": + out.Overall = int(in.Int()) + case "Stamina": + out.Stamina = int(in.Int()) + case "Injury": + out.Injury = int(in.Int()) + case "FootballIQ": + out.FootballIQ = int(in.Int()) + case "Speed": + out.Speed = int(in.Int()) + case "Carrying": + out.Carrying = int(in.Int()) + case "Agility": + out.Agility = int(in.Int()) + case "Catching": + out.Catching = int(in.Int()) + case "RouteRunning": + out.RouteRunning = int(in.Int()) + case "ZoneCoverage": + out.ZoneCoverage = int(in.Int()) + case "ManCoverage": + out.ManCoverage = int(in.Int()) + case "Strength": + out.Strength = int(in.Int()) + case "Tackle": + out.Tackle = int(in.Int()) + case "PassBlock": + out.PassBlock = int(in.Int()) + case "RunBlock": + out.RunBlock = int(in.Int()) + case "PassRush": + out.PassRush = int(in.Int()) + case "RunDefense": + out.RunDefense = int(in.Int()) + case "ThrowPower": + out.ThrowPower = int(in.Int()) + case "ThrowAccuracy": + out.ThrowAccuracy = int(in.Int()) + case "KickAccuracy": + out.KickAccuracy = int(in.Int()) + case "KickPower": + out.KickPower = int(in.Int()) + case "PuntAccuracy": + out.PuntAccuracy = int(in.Int()) + case "PuntPower": + out.PuntPower = int(in.Int()) + case "Progression": + out.Progression = int(in.Int()) + case "Discipline": + out.Discipline = int(in.Int()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out *jwriter.Writer, in models.NFLDraftee) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) + } + { + const prefix string = ",\"HighSchool\":" + out.RawString(prefix) + out.String(string(in.HighSchool)) + } + { + const prefix string = ",\"CollegeID\":" + out.RawString(prefix) + out.Uint(uint(in.CollegeID)) + } + { + const prefix string = ",\"College\":" + out.RawString(prefix) + out.String(string(in.College)) + } + { + const prefix string = ",\"DraftedTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedTeamID)) + } + { + const prefix string = ",\"DraftedTeam\":" + out.RawString(prefix) + out.String(string(in.DraftedTeam)) + } + { + const prefix string = ",\"DraftedRound\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedRound)) + } + { + const prefix string = ",\"DraftPickID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftPickID)) + } + { + const prefix string = ",\"DraftedPick\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedPick)) + } + { + const prefix string = ",\"City\":" + out.RawString(prefix) + out.String(string(in.City)) + } + { + const prefix string = ",\"State\":" + out.RawString(prefix) + out.String(string(in.State)) + } + { + const prefix string = ",\"OverallGrade\":" + out.RawString(prefix) + out.String(string(in.OverallGrade)) + } + { + const prefix string = ",\"StaminaGrade\":" + out.RawString(prefix) + out.String(string(in.StaminaGrade)) + } + { + const prefix string = ",\"InjuryGrade\":" + out.RawString(prefix) + out.String(string(in.InjuryGrade)) + } + { + const prefix string = ",\"FootballIQGrade\":" + out.RawString(prefix) + out.String(string(in.FootballIQGrade)) + } + { + const prefix string = ",\"SpeedGrade\":" + out.RawString(prefix) + out.String(string(in.SpeedGrade)) + } + { + const prefix string = ",\"CarryingGrade\":" + out.RawString(prefix) + out.String(string(in.CarryingGrade)) + } + { + const prefix string = ",\"AgilityGrade\":" + out.RawString(prefix) + out.String(string(in.AgilityGrade)) + } + { + const prefix string = ",\"CatchingGrade\":" + out.RawString(prefix) + out.String(string(in.CatchingGrade)) + } + { + const prefix string = ",\"RouteRunningGrade\":" + out.RawString(prefix) + out.String(string(in.RouteRunningGrade)) + } + { + const prefix string = ",\"ZoneCoverageGrade\":" + out.RawString(prefix) + out.String(string(in.ZoneCoverageGrade)) + } + { + const prefix string = ",\"ManCoverageGrade\":" + out.RawString(prefix) + out.String(string(in.ManCoverageGrade)) + } + { + const prefix string = ",\"StrengthGrade\":" + out.RawString(prefix) + out.String(string(in.StrengthGrade)) + } + { + const prefix string = ",\"TackleGrade\":" + out.RawString(prefix) + out.String(string(in.TackleGrade)) + } + { + const prefix string = ",\"PassBlockGrade\":" + out.RawString(prefix) + out.String(string(in.PassBlockGrade)) + } + { + const prefix string = ",\"RunBlockGrade\":" + out.RawString(prefix) + out.String(string(in.RunBlockGrade)) + } + { + const prefix string = ",\"PassRushGrade\":" + out.RawString(prefix) + out.String(string(in.PassRushGrade)) + } + { + const prefix string = ",\"RunDefenseGrade\":" + out.RawString(prefix) + out.String(string(in.RunDefenseGrade)) + } + { + const prefix string = ",\"ThrowPowerGrade\":" + out.RawString(prefix) + out.String(string(in.ThrowPowerGrade)) + } + { + const prefix string = ",\"ThrowAccuracyGrade\":" + out.RawString(prefix) + out.String(string(in.ThrowAccuracyGrade)) + } + { + const prefix string = ",\"KickAccuracyGrade\":" + out.RawString(prefix) + out.String(string(in.KickAccuracyGrade)) + } + { + const prefix string = ",\"KickPowerGrade\":" + out.RawString(prefix) + out.String(string(in.KickPowerGrade)) + } + { + const prefix string = ",\"PuntAccuracyGrade\":" + out.RawString(prefix) + out.String(string(in.PuntAccuracyGrade)) + } + { + const prefix string = ",\"PuntPowerGrade\":" + out.RawString(prefix) + out.String(string(in.PuntPowerGrade)) + } + { + const prefix string = ",\"BoomOrBust\":" + out.RawString(prefix) + out.Bool(bool(in.BoomOrBust)) + } + { + const prefix string = ",\"BoomOrBustStatus\":" + out.RawString(prefix) + out.String(string(in.BoomOrBustStatus)) + } + { + const prefix string = ",\"FirstName\":" + out.RawString(prefix) + out.String(string(in.FirstName)) + } + { + const prefix string = ",\"LastName\":" + out.RawString(prefix) + out.String(string(in.LastName)) + } + { + const prefix string = ",\"Position\":" + out.RawString(prefix) + out.String(string(in.Position)) + } + { + const prefix string = ",\"Archetype\":" + out.RawString(prefix) + out.String(string(in.Archetype)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"Height\":" + out.RawString(prefix) + out.Int(int(in.Height)) + } + { + const prefix string = ",\"Weight\":" + out.RawString(prefix) + out.Int(int(in.Weight)) + } + { + const prefix string = ",\"Age\":" + out.RawString(prefix) + out.Int(int(in.Age)) + } + { + const prefix string = ",\"Stars\":" + out.RawString(prefix) + out.Int(int(in.Stars)) + } + { + const prefix string = ",\"Overall\":" + out.RawString(prefix) + out.Int(int(in.Overall)) + } + { + const prefix string = ",\"Stamina\":" + out.RawString(prefix) + out.Int(int(in.Stamina)) + } + { + const prefix string = ",\"Injury\":" + out.RawString(prefix) + out.Int(int(in.Injury)) + } + { + const prefix string = ",\"FootballIQ\":" + out.RawString(prefix) + out.Int(int(in.FootballIQ)) + } + { + const prefix string = ",\"Speed\":" + out.RawString(prefix) + out.Int(int(in.Speed)) + } + { + const prefix string = ",\"Carrying\":" + out.RawString(prefix) + out.Int(int(in.Carrying)) + } + { + const prefix string = ",\"Agility\":" + out.RawString(prefix) + out.Int(int(in.Agility)) + } + { + const prefix string = ",\"Catching\":" + out.RawString(prefix) + out.Int(int(in.Catching)) + } + { + const prefix string = ",\"RouteRunning\":" + out.RawString(prefix) + out.Int(int(in.RouteRunning)) + } + { + const prefix string = ",\"ZoneCoverage\":" + out.RawString(prefix) + out.Int(int(in.ZoneCoverage)) + } + { + const prefix string = ",\"ManCoverage\":" + out.RawString(prefix) + out.Int(int(in.ManCoverage)) + } + { + const prefix string = ",\"Strength\":" + out.RawString(prefix) + out.Int(int(in.Strength)) + } + { + const prefix string = ",\"Tackle\":" + out.RawString(prefix) + out.Int(int(in.Tackle)) + } + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int(int(in.PassBlock)) + } + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int(int(in.RunBlock)) + } + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int(int(in.PassRush)) + } + { + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int(int(in.RunDefense)) + } + { + const prefix string = ",\"ThrowPower\":" + out.RawString(prefix) + out.Int(int(in.ThrowPower)) + } + { + const prefix string = ",\"ThrowAccuracy\":" + out.RawString(prefix) + out.Int(int(in.ThrowAccuracy)) + } + { + const prefix string = ",\"KickAccuracy\":" + out.RawString(prefix) + out.Int(int(in.KickAccuracy)) + } + { + const prefix string = ",\"KickPower\":" + out.RawString(prefix) + out.Int(int(in.KickPower)) + } + { + const prefix string = ",\"PuntAccuracy\":" + out.RawString(prefix) + out.Int(int(in.PuntAccuracy)) + } + { + const prefix string = ",\"PuntPower\":" + out.RawString(prefix) + out.Int(int(in.PuntPower)) + } + { + const prefix string = ",\"Progression\":" + out.RawString(prefix) + out.Int(int(in.Progression)) + } + { + const prefix string = ",\"Discipline\":" + out.RawString(prefix) + out.Int(int(in.Discipline)) + } + { + const prefix string = ",\"PotentialGrade\":" + out.RawString(prefix) + out.String(string(in.PotentialGrade)) + } + { + const prefix string = ",\"FreeAgency\":" + out.RawString(prefix) + out.String(string(in.FreeAgency)) + } + { + const prefix string = ",\"Personality\":" + out.RawString(prefix) + out.String(string(in.Personality)) + } + { + const prefix string = ",\"RecruitingBias\":" + out.RawString(prefix) + out.String(string(in.RecruitingBias)) + } + { + const prefix string = ",\"WorkEthic\":" + out.RawString(prefix) + out.String(string(in.WorkEthic)) + } + { + const prefix string = ",\"AcademicBias\":" + out.RawString(prefix) + out.String(string(in.AcademicBias)) + } + { + const prefix string = ",\"IsInjured\":" + out.RawString(prefix) + out.Bool(bool(in.IsInjured)) + } + { + const prefix string = ",\"InjuryName\":" + out.RawString(prefix) + out.String(string(in.InjuryName)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryReserve\":" + out.RawString(prefix) + out.Bool(bool(in.InjuryReserve)) + } + { + const prefix string = ",\"PrimeAge\":" + out.RawString(prefix) + out.Uint(uint(in.PrimeAge)) + } + { + const prefix string = ",\"Clutch\":" + out.RawString(prefix) + out.Int(int(in.Clutch)) + } + { + const prefix string = ",\"Shotgun\":" + out.RawString(prefix) + out.Int(int(in.Shotgun)) + } + { + const prefix string = ",\"PositionTwo\":" + out.RawString(prefix) + out.String(string(in.PositionTwo)) + } + { + const prefix string = ",\"ArchetypeTwo\":" + out.RawString(prefix) + out.String(string(in.ArchetypeTwo)) + } + { + const prefix string = ",\"RelativeID\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeID)) + } + { + const prefix string = ",\"RelativeType\":" + out.RawString(prefix) + out.Uint(uint(in.RelativeType)) + } + { + const prefix string = ",\"Notes\":" + out.RawString(prefix) + out.String(string(in.Notes)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} From 0eb9307c732fbbbedaf812f13e2af39f8f512c74 Mon Sep 17 00:00:00 2001 From: jedibob5 Date: Wed, 15 Oct 2025 17:41:33 -0500 Subject: [PATCH 3/3] bootstrap fixes --- managers/BootstrapManager.go | 12 +++--- managers/BootstrapManager_easyjson.go | 62 +++++++++++++-------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index 32f2813f..6f23b249 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -89,10 +89,10 @@ type BootstrapDataPortal struct { type BootstrapDataGameplan struct { CollegeGameplanMap map[uint]structs.CollegeGameplan CollegeDepthChart structs.CollegeTeamDepthChart - ProGameplanMap map[uint]structs.NFLGameplan - ProDepthChart structs.NFLDepthChart CollegeDepthChartMap map[uint]structs.CollegeTeamDepthChart - ProDepthChartMap map[uint]structs.NFLDepthChart + NFLGameplanMap map[uint]structs.NFLGameplan + NFLDepthChart structs.NFLDepthChart + NFLDepthChartMap map[uint]structs.NFLDepthChart } type BootstrapDataNews struct { @@ -573,9 +573,9 @@ func GetGameplanBootstrap(collegeID, proID string) BootstrapDataGameplan { CollegeGameplanMap: collegeGameplanMap, CollegeDepthChart: collegeDepthChart, CollegeDepthChartMap: collegeDepthChartMap, - ProGameplanMap: proGameplanMap, - ProDepthChart: proDepthChart, - ProDepthChartMap: proDepthChartMap, + NFLGameplanMap: proGameplanMap, + NFLDepthChart: proDepthChart, + NFLDepthChartMap: proDepthChartMap, } } diff --git a/managers/BootstrapManager_easyjson.go b/managers/BootstrapManager_easyjson.go index 3ef4c670..5d912d9a 100644 --- a/managers/BootstrapManager_easyjson.go +++ b/managers/BootstrapManager_easyjson.go @@ -20577,52 +20577,52 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o } case "CollegeDepthChart": easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &out.CollegeDepthChart) - case "ProGameplanMap": + case "CollegeDepthChartMap": if in.IsNull() { in.Skip() } else { in.Delim('{') - out.ProGameplanMap = make(map[uint]structs.NFLGameplan) + out.CollegeDepthChartMap = make(map[uint]structs.CollegeTeamDepthChart) for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v186 structs.NFLGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v186) - (out.ProGameplanMap)[key] = v186 + var v186 structs.CollegeTeamDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v186) + (out.CollegeDepthChartMap)[key] = v186 in.WantComma() } in.Delim('}') } - case "ProDepthChart": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &out.ProDepthChart) - case "CollegeDepthChartMap": + case "NFLGameplanMap": if in.IsNull() { in.Skip() } else { in.Delim('{') - out.CollegeDepthChartMap = make(map[uint]structs.CollegeTeamDepthChart) + out.NFLGameplanMap = make(map[uint]structs.NFLGameplan) for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v187 structs.CollegeTeamDepthChart - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v187) - (out.CollegeDepthChartMap)[key] = v187 + var v187 structs.NFLGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v187) + (out.NFLGameplanMap)[key] = v187 in.WantComma() } in.Delim('}') } - case "ProDepthChartMap": + case "NFLDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &out.NFLDepthChart) + case "NFLDepthChartMap": if in.IsNull() { in.Skip() } else { in.Delim('{') - out.ProDepthChartMap = make(map[uint]structs.NFLDepthChart) + out.NFLDepthChartMap = make(map[uint]structs.NFLDepthChart) for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() var v188 structs.NFLDepthChart easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v188) - (out.ProDepthChartMap)[key] = v188 + (out.NFLDepthChartMap)[key] = v188 in.WantComma() } in.Delim('}') @@ -20668,14 +20668,14 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, in.CollegeDepthChart) } { - const prefix string = ",\"ProGameplanMap\":" + const prefix string = ",\"CollegeDepthChartMap\":" out.RawString(prefix) - if in.ProGameplanMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + if in.CollegeDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v190First := true - for v190Name, v190Value := range in.ProGameplanMap { + for v190Name, v190Value := range in.CollegeDepthChartMap { if v190First { v190First = false } else { @@ -20683,25 +20683,20 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer } out.UintStr(uint(v190Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v190Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v190Value) } out.RawByte('}') } } { - const prefix string = ",\"ProDepthChart\":" - out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, in.ProDepthChart) - } - { - const prefix string = ",\"CollegeDepthChartMap\":" + const prefix string = ",\"NFLGameplanMap\":" out.RawString(prefix) - if in.CollegeDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + if in.NFLGameplanMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v191First := true - for v191Name, v191Value := range in.CollegeDepthChartMap { + for v191Name, v191Value := range in.NFLGameplanMap { if v191First { v191First = false } else { @@ -20709,20 +20704,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer } out.UintStr(uint(v191Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v191Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v191Value) } out.RawByte('}') } } { - const prefix string = ",\"ProDepthChartMap\":" + const prefix string = ",\"NFLDepthChart\":" + out.RawString(prefix) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, in.NFLDepthChart) + } + { + const prefix string = ",\"NFLDepthChartMap\":" out.RawString(prefix) - if in.ProDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + if in.NFLDepthChartMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v192First := true - for v192Name, v192Value := range in.ProDepthChartMap { + for v192Name, v192Value := range in.NFLDepthChartMap { if v192First { v192First = false } else {