io.stigg.api.operations.adapter.GetUsageHistoryQuery_VariablesAdapter Maven / Gradle / Ivy
//
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL version '3.8.2'.
//
package io.stigg.api.operations.adapter;
import com.apollographql.apollo3.api.Adapter;
import com.apollographql.apollo3.api.CustomScalarAdapters;
import com.apollographql.apollo3.api.ObjectAdapter;
import com.apollographql.apollo3.api.json.JsonReader;
import com.apollographql.apollo3.api.json.JsonWriter;
import io.stigg.api.operations.GetUsageHistoryQuery;
import io.stigg.api.operations.type.UsageHistoryInput;
import io.stigg.api.operations.type.adapter.UsageHistoryInput_InputAdapter;
import java.io.IOException;
import java.lang.IllegalStateException;
import java.lang.Override;
public enum GetUsageHistoryQuery_VariablesAdapter implements Adapter {
INSTANCE;
@Override
public GetUsageHistoryQuery fromJson(JsonReader reader, CustomScalarAdapters customScalarAdapters)
throws IOException {
throw new IllegalStateException("Input type used in output position");
}
@Override
public void toJson(JsonWriter writer, CustomScalarAdapters customScalarAdapters,
GetUsageHistoryQuery value) throws IOException {
writer.name("usageHistoryInput");
new ObjectAdapter(UsageHistoryInput_InputAdapter.INSTANCE, false).toJson(writer, customScalarAdapters, value.usageHistoryInput);
}
}