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

Method ToJson

dotnet/src/webdriver/Response.cs:173–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171 /// <returns>A JSON-encoded string representing this <see cref="Response"/> object.</returns>
172
173 [RequiresUnreferencedCode("Untyped JSON serialization is not trim- or AOT- safe.")]
174 [RequiresDynamicCode("Untyped JSON serialization is not trim- or AOT- safe.")]
175 public string ToJson()
176 {
177 return JsonSerializer.Serialize(this);
178 }
179
180 /// <summary>
181 /// Throws if <see cref="Value"/> is <see langword="null"/>.

Callers

nothing calls this directly

Calls 1

SerializeMethod · 0.45

Tested by

no test coverage detected