TokenLendingWithdrawObligationCollateralLayout.fromBuffer constructor

TokenLendingWithdrawObligationCollateralLayout.fromBuffer(
  1. List<int> data
)

Implementation

factory TokenLendingWithdrawObligationCollateralLayout.fromBuffer(
    List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: TokenLendingProgramInstruction
          .withdrawObligationCollateral.insturction);
  return TokenLendingWithdrawObligationCollateralLayout(
      collateralAmount: decode["collateralAmount"]);
}