DestinyItemValueBlockDefinition class

This defines an item's "Value". Unfortunately, this appears to be used in different ways depending on the way that the item itself is used. For items being sold at a Vendor, this is the default "sale price" of the item. These days, the vendor itself almost always sets the price, but it still possible for the price to fall back to this value. For quests, it is a preview of rewards you can gain by completing the quest. For dummy items, if the itemValue refers to an Emblem, it is the emblem that should be shown as the reward. (jeez louise) It will likely be used in a number of other ways in the future, it appears to be a bucket where they put arbitrary items and quantities into the item.

Annotations
  • @JsonSerializable()

Properties

hashCode int
The hash code for this object.
no setterinherited
itemValue List<DestinyItemQuantity>?
References to the items that make up this item's "value", and the quantity.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valueDescription String?
If there's a localized text description of the value provided, this will be said description.
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<DestinyItemValueBlockDefinition>