VoteProgramWithdrawLayout.fromBuffer constructor
Implementation
factory VoteProgramWithdrawLayout.fromBuffer(List<int> data) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction: VoteProgramInstruction.withdraw.insturction);
return VoteProgramWithdrawLayout(lamports: decode["lamports"]);
}