json_serializable.dart icon indicating copy to clipboard operation
json_serializable.dart copied to clipboard

Generates utilities to aid in serializing to/from JSON.

Results 161 json_serializable.dart issues
Sort by recently updated
recently updated
newest added

The following file throws in the generator (probably because it tries to compare the type `Child` with `ChildMixin`). I also reported this at https://github.com/rrousselGit/freezed/issues/766 but perhaps it's something that can...

State: help wanted
Type: bug
P3 low

``` dart --version Dart SDK version: 2.18.0 (stable) (Fri Aug 26 10:22:54 2022 +0000) on "windows_x64" ``` ``` pubspec.lock: [...] json_annotation: dependency: "direct main" description: name: json_annotation url: "https://pub.dartlang.org" source:...

Hello! I'm bothering you one more time for some cloud_firestore_odm issues 🙈 ## Problem Long story short, I'm trying to fix https://github.com/firebase/flutterfire/issues/9428. The gist of the issue is that the...

Flutter Version ```console Flutter 3.3.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision e3c29ec00c (6 days ago) • 2022-09-14 08:46:55 -0500 Engine • revision a4ff2c53d8 Tools • Dart 2.18.1 •...

Currently, it seems not to be possible to ignore unknown enum values when serializing. Given the following example: ``` enum MyEnum { a, b, c } @JsonSerializable() class MyModel {...

Type: enhancement
pkg:json_serializable
pkg:json_annotation

I encountered some incorrect code generation when setting `checked: true` and importing `json_annotation` with a prefix: ``` import 'package:json_annotation/json_annotation.dart' as _i1; part 'my_class.g.dart'; @_i1.JsonSerializable(checked: true) class MyClass { final String...

State: help wanted
Type: enhancement
P2 medium
pkg:json_serializable

Versions: Dart SDK version: 3.3.0 (stable) (Tue Feb 13 10:25:19 2024 +0000) on "windows_x64" Flutter 3.19.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision abb292a07e (6 days ago) • 2024-02-20...

State: needs info
pkg:json_serializable

Hi, Is there any way to make it ignore setters? Currently, the only workaround that I found is to set: `@JsonSerializable(ignoreUnannotated: true)` But it forces to add `@JsonKey()` above any...

Please add ability to parse json with case insensitive keys: ```{ "key": "value"}``` should result in the same model as ```{"Key": "value"}``` and {"KEY": "value"}```. That's especially relevant with camelcase,...

Since Dart 3.0, we have Records and it similar to define a class contains only data so in my view this code is equalvalent. ```dart typedef RoomPlanBookingInfo = ({ ///...

Type: enhancement