MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / toType

Method toType

java/src/org/openqa/selenium/json/Json.java:160–162  ·  view source on GitHub ↗

Deserialize the specified JSON string into an object of the specified type. NOTE : This method uses the PropertySetting#BY_NAME BY_NAME strategy to assign values to properties in the deserialized object. @param source serialized source as JSON string @param typeOfT data type for d

(String source, Type typeOfT)

Source from the content-addressed store, hash-verified

158 * @throws JsonException if an I/O exception is encountered
159 */
160 public <T> T toType(String source, Type typeOfT) {
161 return toType(source, typeOfT, PropertySetting.BY_NAME);
162 }
163
164 /**
165 * Deserialize the specified JSON string into an object of the specified type.

Calls 3

nonNullMethod · 0.95
newInputMethod · 0.95
coerceMethod · 0.80