object 1.0.2 copy "object: ^1.0.2" to clipboard
object: ^1.0.2 copied to clipboard

Simplify the process of converting Dart objects to JSON and vice versa, making it easier to work with JSON data in Dart applications.

Object #

Pub Version Build Status Coverage Status

The object library provides utilities for serializing and deserializing Dart objects to and from JSON format. This library simplifies the process of converting Dart objects to JSON and vice versa, making it easier to work with JSON data in Dart applications.

Features #

  • Automatic generation of serialization code for Dart classes using annotations.
  • Support for serializing and deserializing JSON data with minimal boilerplate code.
  • Customizable serialization behavior through annotations and configuration options.
  • Compatibility with popular Dart frameworks and tools, including Flutter.

Working with instances never was easiest.

SimpleSample? sample = {
  'id': 'id',
  'numberContent': 1,
  'integerContent': 2,
  'doubleContent': 3.0,
  'stringContent': 'string',
  'booleanContent': true,
}.asNullableInstance();

Home #

Installation #

Classes #

- Generate Serialization Code

Field Annotation #

Instances #

- Create new instances

- Create a list of instances

- Create a map of instances

- Other types of instances

- Conversion safety

2
likes
110
pub points
34%
popularity

Publisher

verified publisherlandamessenger.com

Simplify the process of converting Dart objects to JSON and vice versa, making it easier to work with JSON data in Dart applications.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

analyzer, cloud_firestore, flutter, intl, yaml

More

Packages that depend on object