data_type_detector 1.0.0
data_type_detector: ^1.0.0 copied to clipboard
Detect Dart and JSON data types automatically with deep parsing support for primitives, iterables, and nested maps.
1.0.0 #
- Detect primitive types: int, double, String, bool, null.
- Detect iterables: List
- Detect maps and JSON:
- JSON-safe maps (Map<String, dynamic> with only primitives, maps, or iterables).
- Nested JSON detection.
- Differentiates JSON, MAP, and other OBJECT types.
- Deep string parsing to detect numbers and booleans.
- Extensions:
- String? → .isBool, .isInt, .isDouble, .isNum
- Iterable
- Object? → .dataType, .dataTypeWithOptions(parseable: true)
- Support for lists of JSON maps (JSONS) and non-JSON maps (MAPS).
- Handles empty lists and maps correctly.
- Fully documented with DartDoc.