You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.