use of com.apollographql.apollo.response.CustomTypeAdapter in project apollo-android by apollographql.
the class RealResponseWriter method writeCustom.
@SuppressWarnings("unchecked")
@Override
public void writeCustom(@Nonnull ResponseField.CustomTypeField field, @Nullable Object value) {
CustomTypeAdapter typeAdapter = scalarTypeAdapters.adapterFor(field.scalarType());
writeScalarFieldValue(field, value != null ? typeAdapter.encode(value).value : null);
}
Aggregations