serialize data helper to assist store attributes in serialize data hash.