Search packages, repositories and app categories

Package detailsv2.0.1

dart_json_mapper_flutter

This is a dart-json-mapper complementary package provides support for https://github.com/flutter/flutter types in order to serialize / deserialize them from / to JSON.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
142
Likes
4
Pub points
140

Install package

flutter pub add dart_json_mapper_flutter

Package Overview

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

A complementary package for dart-json-mapper that enables seamless serialization and deserialization of Flutter-specific types such as Color, EdgeInsets, Size, and more. It extends the core dart-json-mapper functionality to support common Flutter data structures, making it easier to work with JSON in Flutter applications. The package is generated using code generation, ensuring high performance and type safety. It integrates smoothly with existing dart-json-mapper workflows.

Use cases

  • Serializing Flutter UI components to JSON
  • Deserializing configuration files with Flutter types
  • Handling user preferences with complex data structures
  • Building cross-platform apps with consistent data models
  • Integrating with APIs that return Flutter-compatible objects

Key features

  • Supports Flutter-specific types like Color and EdgeInsets
  • Generated code ensures optimal performance
  • Seamless integration with dart-json-mapper
  • Cross-platform compatibility
  • Type-safe JSON conversion
  • Minimal boilerplate

Suitable for

  • Flutter developers working with JSON data
  • Apps requiring serialization of UI-related data
  • Projects using dart-json-mapper for data binding
  • Teams prioritizing code generation and performance
  • Developers building reusable data models across platforms

Considerations

  • Requires code generation setup
  • Depends on dart-json-mapper being installed
  • May need updates when Flutter types change
  • Limited to supported Flutter types only
  • Not suitable for runtime type reflection

Original README

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

./mapper/README.md

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.