DestinyInsertPlugsRequestEntry class

Represents all of the data related to a single plug to be inserted. Note that, while you can point to a socket that represents infusion, you will receive an error if you attempt to do so. Come on guys, let's play nice.

Annotations
  • @JsonSerializable()

Properties

hashCode int
The hash code for this object.
no setterinherited
plugItemHash int?
Plugs are never instanced (except in infusion). So with the hash alone, we should be able to: 1) Infer whether the player actually needs to have the item, or if it's a reusable plug 2) Perform any operation needed to use the Plug, including removing the plug item and running reward sheets.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socketArrayType DestinySocketArrayType?
This property, combined with the socketIndex, tells us which socket we are referring to (since operations can be performed on both Intrinsic and "default" sockets, and they occupy different arrays in the Inventory Item Definition). I know, I know. Don't give me that look.
getter/setter pair
socketIndex int?
The index into the socket array, which identifies the specific socket being operated on. We also need to know the socketArrayType in order to uniquely identify the socket. Don't point to or try to insert a plug into an infusion socket. It won't work.
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<DestinyInsertPlugsRequestEntry>