jaguar_serializer 1.0.0-dev2
jaguar_serializer: ^1.0.0-dev2 copied to clipboard
Platform and format agnostic serializer built using source_gen
Changelog #
1.0.0-dev2 #
- simplify and optimize generated code
- fix processor inside List/Map
*** Breaking Changes ***
- All Serializers are now nullable by default
- Drop Map key processor
- Only
Map<String, dynamic>can be encode toMap(null)return nullfromMap(null)return nullfromMap({})return object
1.0.0-dev1 #
- update to dart 2
- support
build.yamlandbuild_runner
0.5.1 #
- Removed deprecated
processorsfield inGenSerializeruseprocessorfield inPropertyinstead
0.5.0 #
- support disable null check
- deprecate
GenSerializer.processorfields, FieldProcessor go intoGenSerializer.fieldsinsideProperty - support for default value,
String,int,double,bool, if a field is non nullable, jaguar will use the default value declared in you object constructor
Breaking Change
EnDecode, DecodeOnly, EncodeOnly does not use optional parameter in constructor anymore,
example: EnDecode({this.alias, bool isNullable, FieldProcessor<T, dynamic> processor, T defaultsTo})
0.4.2 #
- Better support of ddc
0.4.1 #
- Added docs
- Fixed README
0.4.0 #
Breaking Changes
- Generator is now in a separate package
- Angular style annotations, only one annotation
@GenSerializer(
fields: const {
'field': const EncodeOnly('f')
},
ignore: const [
'ignoreField'
],
processors: const {
'dates': const DateTimeProcessor(),
},
serializers: const [
FieldSerializer,
])
0.3.16 #
to,from,serialize,deserializemethods now handlenullvalues correctly
0.3.15 #
serializeanddeserializemethods now handlenullvalues correctly
0.3.14 #
SerializerRepohandles whentypeisdynamic
0.3.12 #
- Added
fromandtomethods toSerializerRepo
0.3.11 #
- SerializerRepo now serializes and de-serializes built-in types at the root like
Map,List<List>, etc - added
addAllmethod toSerializerRepoto add multiple serializers - Validation for
RawDatacustom field processor
0.3.7 #
- Add builtin
RawDataProcessor - Optimize CustomFieldProcessor
0.3.6 #
- Update
buildpackage to>=0.9.3 <0.10.0
0.3.5 #
serializers.yamlis now optional, Jaguar Serializer will take all dart files underlib,bin,exampleandtestfolders. Be careful on big project,watchcan be slow or take a lot of resources.
0.3.4 #
- Fixed ProvideSerializer for Map fields
0.3.3 #
- Better failure messages when property is an Object or dynamic
0.3.2 #
- Added "exclude by default" feature
0.3.1 #
- Update
build(>=0.7.0 <0.8.0) serializer initcommand, generateserializer.yaml- fix overrided field in double inside the generated code
0.3.0 #
New
Repositorysystem (Json, Yaml)- embeded type => see typeKey
- Optional parameters for GenSerializer :
bool typeKey (default:true)if you want to include the typeString modelNamevalue that will be include as a type.
0.1.2 #
First release.
Contains:
- Serializer for dart builtin types
- Custom serializers for fields
- Nested Map and List serializers
0.1.3 #
- Fixed renaming encode field bug
0.1.6 #
- Null nested objects are not serialized properly