@Test public void TestCustomAttributeSerdesTrip() throws Exception { String json = load("user.json"); final User user = mapper.readValue(json, User.class); final String json1 = mapper.writeValueAsString(user); final User user1 = mapper.readValue(json1, User.class); assertEquals(user.getCustomAttributes(), user1.getCustomAttributes()); }
public Map<String, CustomAttribute> getCustomAttributes() { return customAttributes; }
User extends TypedData implements Replier { public Map<String, CustomAttribute> getCustomAttributes() { return customAttributes; } }
User extends TypedData implements Replier { public Map<String, CustomAttribute> getCustomAttributes() { return customAttributes; } User(); }
User extends TypedData implements Replier { public Map<String, CustomAttribute> getCustomAttributes() { return customAttributes; } User(); static User find(String id); static User find(Map<String, String> params); static User create(User user); static User update(User user); static User delete(String id); static User archive(String id); static UserPermanentDeleteResponse permanentDelete(String id); @Deprecated static User delete(Map<String, String> params); static User archive(Map<String, String> params); static UserCollection list(Map<String, String> params); static UserCollection list(); static ScrollableUserCollection scroll(); static Job submit(final List<JobItem<User>> items); static Job submit(final List<JobItem<User>> items, Job job); static JobItemCollection<User> listJobErrorFeed(String jobID); User untag(); @JsonIgnore String getReplyType(); String getType(); String getId(); User setId(String id); String getName(); User setName(String name); String getEmail(); User setEmail(String email); String getPhone(); User setPhone(String phone); String getUserId(); User setUserId(String userId); String getPseudonym(); Avatar getAvatar(); User setAvatar(Avatar avatar); long getCreatedAt(); long getUpdatedAt(); long getRemoteCreatedAt(); User setRemoteCreatedAt(long remoteCreatedAt); Boolean getUnsubscribedFromEmails(); User setUnsubscribedFromEmails(boolean unsubscribedFromEmails); int getSessionCount(); long getLastRequestAt(); User setLastRequestAt(long lastRequestAt); long getSignedUpAt(); User setSignedUpAt(long signedUpAt); String getLastSeenIp(); User setLastSeenIp(String lastSeenIp); Map<String, CustomAttribute> getCustomAttributes(); User setCustomAttributes(Map<String, CustomAttribute> customAttributes); User addCustomAttribute(CustomAttribute customAttribute); String getUserAgentData(); User setUserAgentData(String userAgentData); LocationData getLocationData(); CompanyCollection getCompanyCollection(); User setCompanyCollection(CompanyCollection companyCollection); User addCompany(Company company); User removeCompany(Company company); SocialProfileCollection getSocialProfileCollection(); SegmentCollection getSegmentCollection(); TagCollection getTagCollection(); Boolean isUpdateLastRequestAt(); User setUpdateLastRequestAt(boolean updateLastRequestAt); Boolean isNewSession(); User setNewSession(boolean newSession); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
User extends TypedData implements Replier { public Map<String, CustomAttribute> getCustomAttributes() { return customAttributes; } User(); static User find(String id); static User find(Map<String, String> params); static User create(User user); static User update(User user); static User delete(String id); static User archive(String id); static UserPermanentDeleteResponse permanentDelete(String id); @Deprecated static User delete(Map<String, String> params); static User archive(Map<String, String> params); static UserCollection list(Map<String, String> params); static UserCollection list(); static ScrollableUserCollection scroll(); static Job submit(final List<JobItem<User>> items); static Job submit(final List<JobItem<User>> items, Job job); static JobItemCollection<User> listJobErrorFeed(String jobID); User untag(); @JsonIgnore String getReplyType(); String getType(); String getId(); User setId(String id); String getName(); User setName(String name); String getEmail(); User setEmail(String email); String getPhone(); User setPhone(String phone); String getUserId(); User setUserId(String userId); String getPseudonym(); Avatar getAvatar(); User setAvatar(Avatar avatar); long getCreatedAt(); long getUpdatedAt(); long getRemoteCreatedAt(); User setRemoteCreatedAt(long remoteCreatedAt); Boolean getUnsubscribedFromEmails(); User setUnsubscribedFromEmails(boolean unsubscribedFromEmails); int getSessionCount(); long getLastRequestAt(); User setLastRequestAt(long lastRequestAt); long getSignedUpAt(); User setSignedUpAt(long signedUpAt); String getLastSeenIp(); User setLastSeenIp(String lastSeenIp); Map<String, CustomAttribute> getCustomAttributes(); User setCustomAttributes(Map<String, CustomAttribute> customAttributes); User addCustomAttribute(CustomAttribute customAttribute); String getUserAgentData(); User setUserAgentData(String userAgentData); LocationData getLocationData(); CompanyCollection getCompanyCollection(); User setCompanyCollection(CompanyCollection companyCollection); User addCompany(Company company); User removeCompany(Company company); SocialProfileCollection getSocialProfileCollection(); SegmentCollection getSegmentCollection(); TagCollection getTagCollection(); Boolean isUpdateLastRequestAt(); User setUpdateLastRequestAt(boolean updateLastRequestAt); Boolean isNewSession(); User setNewSession(boolean newSession); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }