serialize data helper to provide methods to store attributes in serialize data hash.