Encounter class

Annotations
  • @freezed

Constructors

Encounter(@JsonKey(name: 'min_level') int minLevel, @JsonKey(name: 'max_level') int maxLevel, @JsonKey(name: 'condition_values') List<NamedAPIResource> conditionValues, int chance, NamedAPIResource method)
const
factory
Encounter.fromJson(Json json)
factory

Properties

chance int
Percent chance that this encounter will occur.
no setterinherited
conditionValues List<NamedAPIResource>
A list of condition values that must be in effect for this encounter to occur.
no setterinherited
copyWith → $EncounterCopyWith<Encounter>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
maxLevel int
The highest level the Pokémon could be encountered at.
no setterinherited
method NamedAPIResource
The method by which this encounter happens.
no setterinherited
minLevel int
The lowest level the Pokémon could be encountered at.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited