DestinyMaterialRequirement class

Many actions relating to items require you to expend materials: - Activating a talent node - Inserting a plug into a socket The items will refer to material requirements by a materialRequirementsHash in these cases, and this is the definition for those requirements in terms of the item required, how much of it is required and other interesting info. This is one of the rare/strange times where a single contract class is used both in definitions and in live data response contracts. I'm not sure yet whether I regret that.

Annotations
  • @JsonSerializable()

Properties

count int?
The amount of the material required.
getter/setter pair
countIsConstant bool?
If true, the material requirement count value is constant. Since The Witch Queen expansion, some material requirement counts can be dynamic and will need to be returned with an API call.
getter/setter pair
deleteOnAction bool?
If True, the material will be removed from the character's inventory when the action is performed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
itemHash int?
The hash identifier of the material required. Use it to look up the material's DestinyInventoryItemDefinition.
getter/setter pair
omitFromRequirements bool?
If True, this requirement is "silent": don't bother showing it in a material requirements display. I mean, I'm not your mom: I'm not going to tell you you can't show it. But we won't show it in our UI.
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<DestinyMaterialRequirement>