TypeRelations class
- Annotations
-
- @freezed
Constructors
-
TypeRelations(@JsonKey(name: 'no_damage_to') List<
NamedAPIResource> noDamageTo, @JsonKey(name: 'half_damage_to') List<NamedAPIResource> halfDamageTo, @JsonKey(name: 'double_damage_to') List<NamedAPIResource> doubleDamageTo, @JsonKey(name: 'no_damage_from') List<NamedAPIResource> noDamageFrom, @JsonKey(name: 'half_damage_from') List<NamedAPIResource> halfDamageFrom, @JsonKey(name: 'double_damage_from') List<NamedAPIResource> doubleDamageFrom) -
constfactory
- TypeRelations.fromJson(Json json)
-
factory
Properties
-
copyWith
→ $TypeRelationsCopyWith<
TypeRelations> -
no setterinherited
-
doubleDamageFrom
→ List<
NamedAPIResource> -
A list of types that are very effective against this type.
no setterinherited
-
doubleDamageTo
→ List<
NamedAPIResource> -
A list of types this type is very effect against.
no setterinherited
-
halfDamageFrom
→ List<
NamedAPIResource> -
A list of types that are not very effective against this type.
no setterinherited
-
halfDamageTo
→ List<
NamedAPIResource> -
A list of types this type is not very effect against.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
noDamageFrom
→ List<
NamedAPIResource> -
A list of types that have no effect on this type.
no setterinherited
-
noDamageTo
→ List<
NamedAPIResource> -
A list of types this type has no effect on.
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