no-unsafe-dictionary-type
ErrorErrorGive dictionary values a concrete type. Generic constraints such as T extends Record<string, unknown> are allowed.
type Metadata = Record<string, unknown>;type Options = Record<string, any>;type OtherMetadata = { [key: string]: object };type Labels = Record<string, string>;function merge<T extends Record<string, unknown>>(value: T) {}Map<String, dynamic> toJson() => {};void merge(Map<String, Object?> previous) {}final Map<String, String> labels = {};class Cache<T extends Map<String, dynamic>> {}How to fix
Generic constraints such as T extends Record<string, unknown> are allowed.
How to fix
Parse JSON into a class at the boundary. Bounds such as T extends Map<String, dynamic> are allowed.