deserialize<T> function
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);
}