All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stripe.model.StripeRawJsonObjectDeserializer Maven / Gradle / Ivy

There is a newer version: 28.1.0-beta.3
Show newest version
package com.stripe.model;

import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import java.lang.reflect.Type;

public class StripeRawJsonObjectDeserializer implements JsonDeserializer {
  /** Deserializes a JSON payload into a {@link StripeRawJsonObject} object. */
  @Override
  public StripeRawJsonObject deserialize(
      JsonElement json, Type typeOfT, JsonDeserializationContext context)
      throws JsonParseException {
    StripeRawJsonObject object = new StripeRawJsonObject();
    object.json = json.getAsJsonObject();
    return object;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy