Skip to content

Delimatrix Dart transforms strings to objects and back with a touch of magic

License

Notifications You must be signed in to change notification settings

flarebyte/delimatrix_dart

Repository files navigation

delimatrix_dart

Dart CI pub package package publisher

Experimental

Delimatrix transforms strings to objects and back with a touch of magic

This versatile tool excels when handling results, typically in JSON format, containing content that can be represented as multiple types of objects. Depending on the context, the content might be a string, an array of strings, or a more complex object

Hero image for delimatrix_dart

Highlights:

  • Uses transformers to convert between different types of objects.
  • Unopinionated JSON serialization support.
  • Provides a chainable API for transforming between different formats.
  • Validates input before transformation.

A few examples:

Transform a Map of string to a Shavian style JSON:

JsonTransformers.fromMap.chain(ToDxJsonTransformer(JsonEscapeConfigs.shavian)).transform(input);

Transform Shavian style JSON to a Map of string:

FromDxJsonTransformer(JsonEscapeConfigs.shavian).chain(JsonTransformers.toMap).transform(jsonishStringResult);

Documentation and links

Related

About

Delimatrix Dart transforms strings to objects and back with a touch of magic

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages