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