Json_serializable.dart: JsonSerialization: option on fields/properties to omit empty List/Map

Created on 20 Jul 2017  Â·  5Comments  Â·  Source: google/json_serializable.dart

_From @kevmoo on October 28, 2016 21:29_

_Copied from original issue: dart-lang/source_gen#96_

help wanted enhancement

All 5 comments

Requesting an update on this. I have not found a way to gracefully handle empty lists with json_serializable

I've actually started on this. It's a bit gnarly

On Mon, Feb 18, 2019, 07:03 Luke Pighetti notifications@github.com wrote:

Requesting an update on this. I have not found a way to gracefully handle
empty lists with json_serializable

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/json_serializable/issues/6#issuecomment-464764659,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABCij1mIGk4Zdm99lHStZhvYhFPfzUWks5vOsDKgaJpZM4Odeeg
.

What's the strategy? I assumed, obviously wrongly, that it would be straightforward.

I've tried hard to make every option round trip cleanly. There are more
interactions with existing options than you might guess...

On Mon, Feb 18, 2019, 08:22 Luke Pighetti notifications@github.com wrote:

What's the strategy? I assumed, obviously wrongly, that it would be
straightforward.

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/json_serializable/issues/6#issuecomment-464797217,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABCinFYS-RjZ-UnXqaVid_qZM8y4x6Lks5vOtNMgaJpZM4Odeeg
.

I'm looking into this some more – and realized I need to refresh the testing story before I add more things to the matrix of features. Stay tuned...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fengqiangboy picture fengqiangboy  Â·  5Comments

xiang23 picture xiang23  Â·  5Comments

kevmoo picture kevmoo  Â·  3Comments

HosseinArabbeigi picture HosseinArabbeigi  Â·  3Comments

Nico04 picture Nico04  Â·  5Comments