- public JsonContactAvatar(SharedContact.Avatar avatar) {
- attachment = new JsonAttachment(avatar.getAttachment());
- isProfile = avatar.isProfile();
+ static JsonContactAvatar from(SharedContact.Avatar avatar) {
+ return new JsonContactAvatar(JsonAttachment.from(avatar.getAttachment()), avatar.isProfile());