deserialize<T> function

T deserialize<T>(
  1. String json, [
  2. JsonSerializerOptions? options
])

Deserializes the given json string to an object of type T.

Optionally, you can provide options to customize the deserialization process. Returns the deserialized object of type T.

Implementation

T deserialize<T>(String json, [JsonSerializerOptions? options]) {
  return JsonSerializer.deserialize<T>(json, options);
}