deserialize<T> static method
Deserializes the given json string into an object of type T using the provided options.
Returns the deserialized object.
Implementation
static T deserialize<T>(String json, [JsonSerializerOptions? options]) {
final className = T.toString();
final opts = JsonSerializer.options.merge(options);
final type = DartParser.parseType(className);
return decode(jsonDecode(json), type, opts) as T;
}