serialize method
Serializes the object to a map.
Implementation
@override
Map<String, dynamic> serialize() {
return {
'version': version,
'isInitialized': isInitialized,
'bumpSeed': bumpSeed,
'poolTokenProgramId': poolTokenProgramId,
'tokenAccountA': tokenAccountA,
'tokenAccountB': tokenAccountB,
'tokenPool': tokenPool,
'mintA': mintA,
'mintB': mintB,
'feeAccount': feeAccount,
'fees': fees.serialize(),
'curveType': curveType.value,
'curveParameters': curveParameters,
};
}