| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| package_json_serializable v6.15.0 source code.tar.gz | 2026-10-19 | 198.3 kB | |
| package_json_serializable v6.15.0 source code.zip | 2026-10-19 | 352.0 kB | |
| README.md | 2026-10-19 | 3.0 kB | |
| Totals: 3 Items | 553.2 kB | 0 | |
- Fix
Recordserialization and default value handling, including nullable empty records()?, non-nullable records with defaults, single-positional record defaults, record and non-Stringmap literals in@JsonKey(defaultValue: ...), and conditional? :constructor defaults. - Fix
createJsonSchemato emit anenumconstraint (anddefault) for enum-typed fields, respecting@JsonValueandJsonEnum.valueField. (#1577) - Support
fromJsonandtoJsonon classes that extendJsonKey. (#1057) - Preserve
typedefalias names in generated code. (#1124) - Fix
genericArgumentFactories: truewhentoJsonis inherited from a generic mixin or superclass. (#1208) - Preserve field declaration order in
toJsonfor classes with primary constructor declaring parameters. (#1599) - Fix
Mapkey and enum handling, including customString-backedJsonConverters anddateTimeUtc: trueonMapkeys,int-encoded enumMapkeys,Map<Object, V>/Map<dynamic, V>, decodingnullto@JsonValue(null)enum entries on non-nullable fields (preserving explicitnulloverdefaultValuewhen the key is present),@JsonEnum(valueField: 'name'), and rejecting getter-backedJsonEnum.valueFields. JsonKey.unknownEnumValue: Added support forMapvalues. (#1093)- Prefer
JsonConverters with matching nullability when both nullable and non-nullable converters for the same type are present. (#1339) - Fix field discovery, inheritance, and class configuration edge cases,
including covariant and setter-only overrides,
hashCode/runtimeTypeoverrides,createFactory: falsewithincludeToJson: true,disallowUnrecognizedKeyswithincludeFromJson: false, genericincludeIfNull: falsemap entries, duplicatefromJsonkey detection, andcreatePerFieldToJsonwhen a field is namedObject. - Fix
createJsonSchemadefault value handling for non-emptyList,Set, andMapconstants,intdefaults onnum/doublefields, and function tear-off defaults, as well as nullable self-references and private fields. - Fix
JsonConverter,@JsonKey(fromJson: ..., toJson: ...),JsonHelper, and extension type edge cases across generic converters, nullable fields, constructor parameter annotations, and customfromJson/toJsonsignatures. - Fix
JsonKey.explicitJsonNullWhenNonNullFieldforRecord,Function,DateTime, generic argument factories, andtoJsoncallbacks namedvalue. - Allow
build5.0.0. - Require
sdk: ^3.12.0.