FLUTTER ECOSYSTEM

dson_adapter

Convert JSON to Dart Class withless code generate(build_runner)

Latest version
1.2.0+2
30-day downloads
6
Likes
31
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

DsonAdapter is a code generation package for Flutter that simplifies JSON-to-Dart class conversion with minimal boilerplate. Using build_runner, it automatically generates serialization and deserialization logic, reducing manual coding. Designed for developers seeking efficient, type-safe JSON handling without writing repetitive code. It integrates seamlessly into Flutter projects across all major platforms, enhancing development speed and maintainability.

Use cases
  • Auto-generating JSON serializers
  • Reducing boilerplate in data models
  • Streamlining API response parsing
  • Integrating with RESTful services
  • Enabling type-safe JSON handling
  • Supporting cross-platform apps
Key features
  • Automatic code generation via build_runner
  • Minimal setup required
  • Type-safe JSON serialization
  • Supports nested objects
  • Efficient runtime performance
  • Cross-platform compatibility
Suitable for
  • Flutter developers using JSON APIs
  • Teams prioritizing code maintainability
  • Projects requiring rapid prototyping
  • Apps with complex JSON structures
  • Developers avoiding manual serialization
  • Those using build_runner workflows
Considerations
  • Requires build_runner to be set up
  • Build-time dependency only
  • Not suitable for runtime-only JSON parsing
  • Limited customization without additional configuration
  • Needs proper annotations on Dart classes
  • May increase build time slightly
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add dson_adapter

Categories

Source repository

Related projects

No data available yet.