private static List <NamedAPIResource> GetMoves(EFSuperContestEffects superContestEffect) { return(superContestEffect .Moves .Select(x => x.ToNamedApiResource()) .ToList()); }
private static List <FlavorText> GetFlavorTextEntries(EFSuperContestEffects superContestEffect) { return(superContestEffect .SuperContestEffectProse .Select(x => new FlavorText(x.FlavorText, x.LocalLanguage.ToNamedApiResource())) .ToList()); }
internal static APIResource ToApiResource(this EFSuperContestEffects src) => src.ToApiResource <SuperContestEffectsController>();