public static void Update_Data() { Get_JSON_String(); fantasyPlayer = FantasyPlayer.FromJson(json); teamPosition = TeamPosition.FromJson(json); teamDetail = Team.FromJson(json); filter_Players("All"); set_numberOfPlayers(); //currentPlayer = fantasyPlayer.Element[databaseLocation]; currentPlayer = filteredPlayers[databaseLocation]; }
public static string ToJson(this FantasyPlayer self) => JsonConvert.SerializeObject(self, BusinessLogic.Converter.Settings);