deserialize<T> function
Deserializes the given JSON string to an object of type T.
This function converts a JSON string into a Dart object of the specified type using the provided serializer options or default options.
@param json The JSON string to deserialize.
@param options Optional serializer options to customize the deserialization process.
If not provided, default options will be used.
@returns The deserialized object of type T.
Implementation
T deserialize<T>(String json, [JsonSerializerOptions? options]) {
return JsonSerializer.deserialize<T>(json, options);
}