Sample-based inference
Each object key becomes evidence for a dataclass field, while its associated JSON value provides evidence for a type annotation. Nested objects and arrays require the generator to infer additional structure or container element types from the values actually present. JSON null and empty arrays carry little type information, so any annotation produced for them should be treated as provisional rather than authoritative.