// Path: gsonvalue/src/test/java/me/tatarka/gsonvalue/model/adapters/StringToIntTypeAdapter.java
// public class StringToIntTypeAdapter extends TypeAdapter<Integer> {
//     @Override
//     public void write(JsonWriter out, Integer value) throws IOException {
//         if (value == null) {
//             out.nullValue();
//         } else {
//             out.value(value.toString());
//         }
//     }
// 
//     @Override
//     public Integer read(JsonReader in) throws IOException {
//         if (in.peek() == JsonToken.NULL) {
//             return null;
//         } else {
//             return Integer.parseInt(in.nextString());
//         }
//     }
// }


import me.tatarka.gsonvalue.annotations.GsonConstructor;
import me.tatarka.gsonvalue.annotations.JsonAdapter;
import me.tatarka.gsonvalue.model.adapters.StringToIntTypeAdapter;
package me.tatarka.gsonvalue.model.roundtrip;


public class WithJsonAdapterMethod {
    private final int arg;

    @GsonConstructor
    public WithJsonAdapterMethod(int arg) {
        this.arg = arg;
    }

// Path: gsonvalue/src/test/java/me/tatarka/gsonvalue/model/adapters/StringToIntTypeAdapter.java
// public class StringToIntTypeAdapter extends TypeAdapter<Integer> {
//     @Override
//     public void write(JsonWriter out, Integer value) throws IOException {
//         if (value == null) {
//             out.nullValue();
//         } else {
//             out.value(value.toString());
//         }
//     }
// 
//     @Override
//     public Integer read(JsonReader in) throws IOException {
//         if (in.peek() == JsonToken.NULL) {
//             return null;
//         } else {
//             return Integer.parseInt(in.nextString());
//         }
//     }
// }


// Path: gsonvalue/src/test/java/me/tatarka/gsonvalue/model/roundtrip/WithJsonAdapterMethod.java
import me.tatarka.gsonvalue.annotations.GsonConstructor;
import me.tatarka.gsonvalue.annotations.JsonAdapter;
import me.tatarka.gsonvalue.model.adapters.StringToIntTypeAdapter;

package me.tatarka.gsonvalue.model.roundtrip;


public class WithJsonAdapterMethod {
    private final int arg;

    @GsonConstructor
    public WithJsonAdapterMethod(int arg) {
        this.arg = arg;
    }

    @JsonAdapter(StringToIntTypeAdapter.class)