json_serializable_fic 1.0.0 copy "json_serializable_fic: ^1.0.0" to clipboard
json_serializable_fic: ^1.0.0 copied to clipboard

Adding support for fast immutable collections for json_serializable

Discontinued #

See https://github.com/marcglasberg/fast_immutable_collections/issues/6 fast_immutable_collections now supports json_serializable out of the box.

json_serializable_fic #

Pub Package

(De-)Serialize more collections using json_serializable.

Unofficial package, meant to extend the functionality of json_serializable.

Features: #

Behaves like json_serializable, but supports more collections.

Currently supported:

  • All types supported by json_serializable
  • IList
  • ISet
  • IMap

Do you want to use even more types? Feel free to open an issue. PRs also welcome.

How to use #

Add to your dev_dependencies:

    json_serializable_fic: <current_version>

Add to your build.yaml (create the file if necessary, this is necessary to avoid conflicts between json_serializable and this library):

    targets:
      $default:
        builders:
          json_serializable_fic:
            # configure your options here, same as json_serializable
            options:
              explicit_to_json: true
          json_serializable:json_serializable:
            generate_for:
              # exclude everything to avoid conflicts, this library uses a custom builder
              include:
              exclude:
                - test/**
                - lib/**
0
likes
50
points
72
downloads

Publisher

verified publisherdemoda.app

Weekly Downloads

Adding support for fast immutable collections for json_serializable

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

analyzer, build, build_runner, json_annotation, json_serializable, json_serializable_fic_typehelpers, source_gen

More

Packages that depend on json_serializable_fic