Search packages, repositories and app categories

Package detailsv1.0.1

dart_json_mapper_built

This is a dart-json-mapper complementary package provides support for https://pub.dev/packages/built_collection types in order to serialize / deserialize them from / to JSON.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
44
Likes
1
Pub points
130

Install package

flutter pub add dart_json_mapper_built

Package Overview

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

This package extends dart-json-mapper to support serialization and deserialization of built_collection types, such as ImmutableList, ImmutableSet, and ImmutableMap, enabling seamless JSON handling for immutable data structures in Dart applications. It integrates directly with the built_collection library, ensuring type safety and efficient conversion between JSON and Dart objects. Ideal for apps relying on immutable data patterns, it simplifies working with complex nested data models.

Use cases

  • Handling immutable collections in JSON APIs
  • Converting built_collection types to and from JSON
  • Building type-safe data models with immutability
  • Integrating with existing dart-json-mapper workflows
  • Supporting reactive or state management architectures

Key features

  • Built-in support for ImmutableList, ImmutableSet, ImmutableMap
  • Seamless integration with dart-json-mapper
  • Type-safe JSON serialization
  • Automatic code generation for built_collection types
  • Minimal boilerplate required

Suitable for

  • Dart developers using built_collection
  • Projects requiring immutable data structures
  • JSON-heavy applications with complex data models
  • Apps using state management with immutability
  • Teams adopting clean architecture with value objects

Considerations

  • Requires dart-json-mapper to be installed
  • Needs code generation step
  • Limited to built_collection types
  • May increase build time slightly
  • Dependent on correct annotation usage

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

./mapper/README.md

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.