MetaplexAuctioneerWithdrawLayout.fromBuffer constructor
Constructs the layout from raw bytes.
Implementation
factory MetaplexAuctioneerWithdrawLayout.fromBuffer(List<int> data) {
final decode = MetaplexAuctioneerProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction: MetaplexAuctioneerProgramInstruction.withdraw.insturction);
return MetaplexAuctioneerWithdrawLayout(
escrowPaymentBump: decode["escrowPaymentBump"],
auctioneerAuthorityBump: decode["auctioneerAuthorityBump"],
amount: decode["amount"]);
}