package com.vk.api.sdk.objects.app.widgets.responses;

import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.app.widgets.ImageType;
import com.vk.api.sdk.objects.base.Image;

import java.util.List;
import java.util.Objects;

public class SaveAppImageResponse {

    @SerializedName("id")
    private String id;

    @SerializedName("type")
    private String type;

    @SerializedName("images")
    private List<Image> images;

    private ImageType imageType = null;

    public String getId() {
        return id;
    }

    public ImageType getImageType() {
        if (imageType == null) {
            switch (type) {
                case "50x50":
                    imageType = ImageType.WIDTH_50_HEIGHT_50;
                    break;
                default:
                    break;
            }
        }
        return imageType;
    }

    public List<Image> getImages() {
        return images;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SaveAppImageResponse that = (SaveAppImageResponse) o;
        return Objects.equals(id, that.id) &&
                type == that.type &&
                Objects.equals(images, that.images);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, type, images);
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SaveAppImageResponse{");
        sb.append("id='").append(id).append('\'');
        sb.append(", type=").append(type);
        sb.append(", images=").append(images);
        sb.append('}');
        return sb.toString();
    }
}

@@ -458,416 +458,48 @@
    p
-rivate ImageType imageType = null;%0A%0A    public String getId() %7B%0A        return id;%0A    %7D%0A%0A    public ImageType getImageType() %7B%0A        if (imageType == null) %7B%0A            switch (type) %7B%0A                case %2250x50%22:%0A                    imageType = ImageType.WIDTH_50_HEIGHT_50;%0A                    break;%0A                default:%0A                    break;%0A            %7D%0A        %7D%0A        return imageType
+ublic String getId() %7B%0A        return id
 ;%0A  

Remove unnecessary stuff