A complementary package for dart-json-mapper that enables seamless serialization and deserialization of fixnum types (like Int64, Uint64) to and from JSON. It extends dart-json-mapper's functionality to handle large integer types commonly used in data-heavy applications, ensuring accurate data representation across platforms. The package integrates smoothly with existing codebases using the dart-json-mapper code generation workflow.
Use cases
- Handling large integers in JSON APIs
- Integrating fixnum types in Flutter apps
- Serializing 64-bit integers in cross-platform apps
- Working with legacy systems requiring fixnum support
- Ensuring precision in financial or timestamp data
Key features
- Supports Int64 and Uint64 types
- Works with dart-json-mapper code generation
- Platform-agnostic serialization
- Maintains precision for large integers
- Minimal setup with pub add command
Suitable for
- Apps processing large numeric data
- Backend integrations with fixnum fields
- Cross-platform apps needing consistent integer handling
- Developers using dart-json-mapper for JSON serialization
Considerations
- Requires dart-json-mapper to be installed
- Limited to fixnum package types
- Not needed for standard int values
- May increase generated code size slightly
- Depends on correct import and annotation usage