PolyBox class
Box that contains polys which is owned by a particular address
- Inheritance
-
- Object
- GenericBox
- Box
- TokenBox
- PolyBox
- Annotations
-
- @JsonSerializable(checked: true, explicitToJson: true)
Constructors
- PolyBox(Evidence evidence, SimpleValue value, Nonce nonce)
-
PolyBox.fromJson(Map<
String, dynamic> json) -
A necessary factory constructor for creating a new PolyBox instance
from a map. Pass the map to the generated
_$PolyBoxFromJson()
constructor. The constructor is named after the source class, in this case, User.factory
Properties
- boxId ↔ BoxId
-
a one-time only, unique reference id (computed from the input transaction data)
getter/setter pairinherited
- evidence → Evidence?
-
a commitment to the proposition locking this box
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nonce → Nonce
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
finalinherited
- value → TokenValueHolder
-
finalinherited
Methods
-
copyWith(
{Evidence? evidence, dynamic value, Nonce? nonce, String? type}) → Box -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toJson
is the convention for a class to declare support for serialization to JSON. The implementation simply calls the private, generated helper method_$PolyBoxToJson
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- typePrefix → const int
- typeString → const String