package com.jagsaund.rxuploader.sample.model.wire;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.google.auto.value.AutoValue;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.SerializedName;
import java.util.List;

@AutoValue
public abstract class PhotoJSONModel {
    @NonNull
    public static TypeAdapter<PhotoJSONModel> typeAdapter(Gson gson) {
        return new AutoValue_PhotoJSONModel.GsonTypeAdapter(gson);
    }

    @SerializedName("id")
    public abstract Integer id();

    @SerializedName("user_id")
    public abstract Integer userId();

    @SerializedName("name")
    public abstract String name();

    @Nullable
    @SerializedName("description")
    public abstract String description();

    @Nullable
    @SerializedName("width")
    public abstract Integer width();

    @Nullable
    @SerializedName("height")
    public abstract Integer height();

    @SerializedName("image_url")
    public abstract String imageUrl();

    @SerializedName("images")
    public abstract List<ImageJSONModel> images();

    @SerializedName("user")
    public abstract UserJSONModel user();
}

@@ -566,23 +566,19 @@
 bstract 
-I
+i
 nt
-eger
  id();%0A%0A
@@ -799,38 +799,24 @@
 ription();%0A%0A
-    @Nullable%0A
     @Seriali
@@ -852,23 +852,19 @@
 bstract 
-I
+i
 nt
-eger
  width()
@@ -862,38 +862,24 @@
 t width();%0A%0A
-    @Nullable%0A
     @Seriali
@@ -916,23 +916,19 @@
 bstract 
-I
+i
 nt
-eger
  height(

Use primitive values for PhotoJSONModel