TokenLendingInitReserveLayout.fromBuffer constructor
Implementation
factory TokenLendingInitReserveLayout.fromBuffer(List<int> data) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction: TokenLendingProgramInstruction.initReserve.insturction);
return TokenLendingInitReserveLayout(
liquidityAmount: decode["liquidityAmount"],
config: ReserveConfig.fromJson(decode["config"]));
}