InputStarsTransaction.deserialize constructor
InputStarsTransaction.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory InputStarsTransaction.deserialize(BinaryReader reader) {
// Read [InputStarsTransaction] fields.
final flags = reader.readInt32();
final refund = (flags & 1) != 0;
final id = reader.readString();
// Construct [InputStarsTransaction] object.
final returnValue = InputStarsTransaction(refund: refund, id: id);
// Now return the deserialized [InputStarsTransaction].
return returnValue;
}