SPLTokenAmountToUiAmountLayout.fromBuffer constructor
Constructs an SPLTokenAmountToUiAmountLayout instance from buffer.
Implementation
factory SPLTokenAmountToUiAmountLayout.fromBuffer(List<int> bytes) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: bytes,
instruction: SPLTokenProgramInstruction.amountToUiAmount.insturction);
return SPLTokenAmountToUiAmountLayout(amount: decode["amount"]);
}