serialize method

  1. @override
Map<String, dynamic> serialize()
override

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,
  };
}