Location class

Annotations
  • @freezed

Constructors

Location(int id, String name, NamedAPIResource? region, List<Name> names, @JsonKey(name: 'game_indices') List<GenerationGameIndex> gameIndices, List<NamedAPIResource> areas)
const
factory
Location.fromJson(Json json)
factory

Properties

areas List<NamedAPIResource>
Areas that can be found within this location.
no setterinherited
copyWith → $LocationCopyWith<Location>
no setterinherited
gameIndices List<GenerationGameIndex>
A list of game indices relevent to this location by generation.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
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
region NamedAPIResource?
The region this location can be found in.
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