MetaplexFixedPriceSaleCreateMarketLayout.fromBuffer constructor
Constructs the layout from raw bytes.
Implementation
factory MetaplexFixedPriceSaleCreateMarketLayout.fromBuffer(List<int> data) {
final decode = MetaplexFixedPriceSaleProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction:
MetaplexFixedPriceSaleProgramInstruction.createMarket.insturction);
return MetaplexFixedPriceSaleCreateMarketLayout(
treasuryOwnerBump: decode["treasuryOwnerBump"],
name: decode["name"],
description: decode["description"],
mutable: decode["mutable"],
price: decode["price"],
piecesInOneWallet: decode["piecesInOneWallet"],
startDate: decode["startDate"],
endDate: decode["endDate"],
gatingConfig: decode["gatingConfig"] == null
? null
: GatingConfig.fromJson(decode["gatingConfig"]));
}