DestinyItemQuantity class

Used in a number of Destiny contracts to return data about an item stack and its quantity. Can optionally return an itemInstanceId if the item is instanced - in which case, the quantity returned will be 1. If it's not... uh, let me know okay? Thanks.

Annotations
  • @JsonSerializable()

Constructors

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

Properties

hasConditionalVisibility bool?
Indicates that this item quantity may be conditionally shown or hidden, based on various sources of state. For example: server flags, account state, or character progress.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
itemHash int?
The hash identifier for the item in question. Use it to look up the item's DestinyInventoryItemDefinition.
getter/setter pair
itemInstanceId String?
If this quantity is referring to a specific instance of an item, this will have the item's instance ID. Normally, this will be null.
getter/setter pair
quantity int?
The amount of the item needed/available depending on the context of where DestinyItemQuantity is being used.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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<DestinyItemQuantity>