DestinyFactionDefinition class

These definitions represent Factions in the game. Factions have ended up unilaterally being related to Vendors that represent them, but that need not necessarily be the case. A Faction is really just an entity that has a related progression for which a character can gain experience. In Destiny 1, Dead Orbit was an example of a Faction: there happens to be a Vendor that represents Dead Orbit (and indeed, DestinyVendorDefinition.factionHash defines to this relationship), but Dead Orbit could theoretically exist without the Vendor that provides rewards.

Annotations
  • @JsonSerializable.new()

Constructors

DestinyFactionDefinition()
DestinyFactionDefinition.fromJson(Map<String, dynamic> json)
factory

Properties

displayProperties ↔ DestinyDisplayPropertiesDefinition?
Many Destiny*Definition contracts - the "first order" entities of Destiny that have their own tables in the Manifest Database - also have displayable information. This is the base class for that display information.
getter/setter pair
hash ↔ int?
The unique identifier for this entity. Guaranteed to be unique for the type of entity, but not globally. When entities refer to each other in Destiny content, it is this hash that they are referring to.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
index ↔ int?
The index of the entity as it was found in the investment tables.
getter/setter pair
progressionHash ↔ int?
The hash identifier for the DestinyProgressionDefinition that indicates the character's relationship with this faction in terms of experience and levels.
getter/setter pair
redacted ↔ bool?
If this is true, then there is an entity with this identifier/type combination, but BNet is not yet allowed to show it. Sorry!
getter/setter pair
rewardItemHash ↔ int?
The faction reward item hash, usually an engram.
getter/setter pair
rewardVendorHash ↔ int?
The faction reward vendor hash, used for faction engram previews.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenValues ↔ Map<String, int>?
The faction token item hashes, and their respective progression values.
getter/setter pair
vendors ↔ List<DestinyFactionVendorDefinition>?
List of vendors that are associated with this faction. The last vendor that passes the unlock flag checks is the one that should be shown.
getter/setter pair

Methods

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

Operators

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

Static Methods

asyncFromJson(Map<String, dynamic> json) → Future<DestinyFactionDefinition>