data_type_detector 1.0.0 copy "data_type_detector: ^1.0.0" to clipboard
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.
0
likes
160
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Detect Dart and JSON data types automatically with deep parsing support for primitives, iterables, and nested maps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on data_type_detector