Region class

Annotations
  • @freezed

Constructors

Region(int id, List<NamedAPIResource> locations, String name, List<Name> names, @JsonKey(name: 'main_generation') NamedAPIResource? mainGeneration, List<NamedAPIResource> pokedexes, @JsonKey(name: 'version_groups') List<NamedAPIResource> versionGroups)
const
factory
Region.fromJson(Json json)
factory

Properties

copyWith → $RegionCopyWith<Region>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
no setterinherited
locations List<NamedAPIResource>
A list of locations that can be found in this region.
no setterinherited
mainGeneration NamedAPIResource?
The generation this region was introduced in.
no setterinherited
name String
The name for this resource.
no setterinherited
names List<Name>
The name of this resource listed in different languages.
no setterinherited
pokedexes List<NamedAPIResource>
A list of pokédexes that catalogue Pokémon in this region.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
versionGroups List<NamedAPIResource>
A list of version groups where this region can be visited.
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