serialize the Subscription class