serialize method

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

Serializes the object to a map.

Implementation

@override
Map<String, dynamic> serialize() {
  return {
    'discriminator': _Utils.discriminator,
    'authority': authority,
    'name': name,
    'accountKey': accountKey,
    'totalShares': totalShares,
    'totalMembers': totalMembers,
    'totalInflow': totalInflow,
    'lastSnapshotAmount': lastSnapshotAmount,
    'bumpSeed': bumpSeed,
    'accountOwnerBumpSeed': accountOwnerBumpSeed,
    'totalAvailableShares': totalAvailableShares,
    'membershipModel': membershipModel.value,
    'membershipMint': membershipMint,
    'totalStakedShares': totalStakedShares
  };
}