theme_json_converter

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

theme json converter

Set of JsonConverters that help to process material theme types.
Motivation #
Main goal of this package is to provide json_serializable ability to serialize theme types without manualy serialization.
Other packages with similar functionality

json_theme

Tip #
All converter has same name convention
and two version plain {MaterialThemeType}Converter and nullable Nullable{MaterialThemeType}Converter
Right now all converter code auto generated from json_theme package
Getting started #
Install like other packages, nothing new, just add to deps.
Usage #
Just put it above your model yep
import 'package:theme_json_converter/theme_json_converter.dart';

@JsonSerializable()
@ColorConverter()
@NullableTextStyleConverter()
class Model{
final Color color;
final TextStyle? style;
}

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.