[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003eThis \u003ccode\u003eTransformer\u003c/code\u003e interface facilitates the conversion between two different types, \u003ccode\u003eTFrom\u003c/code\u003e and \u003ccode\u003eTTo\u003c/code\u003e, during JSON serialization.\u003c/p\u003e\n"],["\u003cp\u003eSerializers can be created using a constructor that accepts a \u003ccode\u003ejava.lang.reflect.Type\u003c/code\u003e, a \u003ccode\u003ejava.lang.Class\u003c/code\u003e, or no arguments, with precedence given in that order.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etransformTo\u003c/code\u003e method converts a source object (\u003ccode\u003eTFrom\u003c/code\u003e) into the destination type (\u003ccode\u003eTTo\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etransformFrom\u003c/code\u003e method converts an object from the destination type (\u003ccode\u003eTTo\u003c/code\u003e) back into the source type (\u003ccode\u003eTFrom\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# Transformer\n\ncom.google.api.server.spi.config\n\nInterface Transformer\\\u003cTFrom,TTo\\\u003e\n----------------------------------\n\n-\n\n Type Parameters:\n : `TFrom` - The type being transformed\n : `TTo` - The type being transformed to\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n public interface Transformer\u003cTFrom,TTo\u003e\n ``` \n An interface used to transform between a bean type and another type during JSON serialization.\n\n\n A serializer is constructed using one of the following constructor signatures (sorted by\n precedence):\n 1. A constructor taking in a single `java.lang.reflect.Type`. This is the type being serialized.\n 2. A constructor taking in a single `java.lang.Class`. This is the class being serialized.\n 3. A no-arg constructor\n\n \u003cbr /\u003e\n\n-\n -\n\n ### Method Summary\n\n-\n -\n\n ### Method Detail\n\n\n -\n\n #### transformTo\n\n ```\n TTo transformTo(TFrom in)\n ``` \n Converts the source object into the destination type.\n\n\n -\n\n #### transformFrom\n\n ```\n TFrom transformFrom(TTo in)\n ``` \n Converts an object from the destination type into the source type."]]