- public JsonContactEmail(SharedContact.Email email) {
- value = email.getValue();
- type = email.getType();
- label = Util.getStringIfNotBlank(email.getLabel());
+ static JsonContactEmail from(SharedContact.Email email) {
+ return new JsonContactEmail(email.getValue(), email.getType(), Util.getStringIfNotBlank(email.getLabel()));