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