Download Latest Version package_json_serializable v6.15.1 source code.zip (352.0 kB) Google Add to Preferred Sources
Home / json_serializable-v6.15.0
Name Modified Size InfoDownloads / 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 Record serialization and default value handling, including nullable empty records ()?, non-nullable records with defaults, single-positional record defaults, record and non-String map literals in @JsonKey(defaultValue: ...), and conditional ? : constructor defaults.
  • Fix createJsonSchema to emit an enum constraint (and default) for enum-typed fields, respecting @JsonValue and JsonEnum.valueField. (#1577)
  • Support fromJson and toJson on classes that extend JsonKey. (#1057)
  • Preserve typedef alias names in generated code. (#1124)
  • Fix genericArgumentFactories: true when toJson is inherited from a generic mixin or superclass. (#1208)
  • Preserve field declaration order in toJson for classes with primary constructor declaring parameters. (#1599)
  • Fix Map key and enum handling, including custom String-backed JsonConverters and dateTimeUtc: true on Map keys, int-encoded enum Map keys, Map<Object, V> / Map<dynamic, V>, decoding null to @JsonValue(null) enum entries on non-nullable fields (preserving explicit null over defaultValue when the key is present), @JsonEnum(valueField: 'name'), and rejecting getter-backed JsonEnum.valueFields.
  • JsonKey.unknownEnumValue: Added support for Map values. (#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/runtimeType overrides, createFactory: false with includeToJson: true, disallowUnrecognizedKeys with includeFromJson: false, generic includeIfNull: false map entries, duplicate fromJson key detection, and createPerFieldToJson when a field is named Object.
  • Fix createJsonSchema default value handling for non-empty List, Set, and Map constants, int defaults on num/double fields, 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 custom fromJson/toJson signatures.
  • Fix JsonKey.explicitJsonNullWhenNonNullField for Record, Function, DateTime, generic argument factories, and toJson callbacks named value.
  • Allow build 5.0.0.
  • Require sdk: ^3.12.0.
Source: README.md, updated 2026-10-19