serialize method
Serializes the object to a map.
Implementation
@override
Map<String, dynamic> serialize() {
return {
"discriminator": _Utils.discriminator,
"tradeState": tradeState,
"bookkeeper": bookkeeper,
"auctionHouse": auctionHouse,
"buyer": buyer,
"metadata": metadata,
"authority": authority,
"purchaseReceipt": purchaseReceipt,
"price": price,
"tokenAccount": tokenAccount,
"tokenSize": tokenSize,
"bump": bump,
"tradeStateBump": tradeStateBump,
"createdAt": createdAt,
"canceledAt": canceledAt,
};
}