MCPcopy Index your code
hub / github.com/PokeAPI/pokeapi / EncounterSlotSerializer

Class EncounterSlotSerializer

pokemon_v2/serializers.py:904–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902
903
904class EncounterSlotSerializer(serializers.ModelSerializer):
905 encounter_method = EncounterMethodSummarySerializer()
906 chance = serializers.IntegerField(source="rarity")
907
908 class Meta:
909 model = EncounterSlot
910 fields = ("id", "slot", "chance", "encounter_method", "version_group")
911
912
913class EncounterDetailSerializer(serializers.ModelSerializer):

Callers 2

get_encountersMethod · 0.85
getMethod · 0.85

Tested by

no test coverage detected