MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / toType

Method toType

java/src/org/openqa/selenium/json/Json.java:153–155  ·  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

151 * @throws JsonException if an I/O exception is encountered
152 */
153 public <T> T toType(String source, Type typeOfT) {
154 return toType(source, typeOfT, PropertySetting.BY_NAME);
155 }
156
157 /**
158 * Deserialize the specified JSON string into an object of the specified type.

Calls 3

nonNullMethod · 0.95
newInputMethod · 0.95
coerceMethod · 0.80