Search packages, repositories and app categories

Package detailsv2.0.5

dart_json_mapper_mobx

This is a dart-json-mapper complementary package provides support for MobX Stores to persist as JSON.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
161
Likes
7
Pub points
160

Install package

flutter pub add dart_json_mapper_mobx

Package Overview

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

A complementary package for dart-json-mapper that enables MobX stores to be serialized and persisted as JSON. It simplifies state management by allowing MobX observables and stores to be easily converted to and from JSON, supporting seamless data persistence across platforms. Designed to work with the dart-json-mapper code generation system, it reduces boilerplate and enhances interoperability between stateful UI components and backend or local storage systems.

Use cases

  • Persisting MobX store state to local storage
  • Syncing application state with JSON-based APIs
  • Enabling state restoration after app restart
  • Integrating MobX with JSON serialization workflows
  • Supporting cross-platform data persistence

Key features

  • Automatic JSON serialization for MobX stores
  • Seamless integration with dart-json-mapper
  • Code generation support for reduced boilerplate
  • Supports nested and complex MobX structures
  • Platform-agnostic JSON handling

Suitable for

  • Flutter apps using MobX for state management
  • Apps requiring persistent state across sessions
  • Developers leveraging code generation for JSON
  • Projects needing consistent data serialization
  • Cross-platform applications with shared state logic

Considerations

  • Requires dart-json-mapper to be set up
  • Needs proper annotation of MobX classes
  • May require additional setup for custom serializers
  • Limited to MobX-specific store patterns
  • Dependent on code generation step during build

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.