Json_serializable.dart: Functionality to automatically convert camelcase to underscore

Created on 8 Aug 2018  Â·  6Comments  Â·  Source: google/json_serializable.dart

Many JSON APIs use names with underscores instead of camelcase. In these cases, nearly every field needs a JsonKey annotation.

It would be great if there was an option to simply automatically convert to underscore.

P2 medium enhancement

Most helpful comment

This has shipped as v1.1.0 😄

All 6 comments

Similar to this – https://github.com/dart-lang/json_serializable/issues/198

We could ponder this...

This has shipped as v1.1.0 😄

Wow thanks!!

We just discovered that. Great enhancement, thank you!

@kevmoo and how it works? whats the setup?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fengqiangboy picture fengqiangboy  Â·  5Comments

ollydixon picture ollydixon  Â·  6Comments

broofus picture broofus  Â·  6Comments

Nico04 picture Nico04  Â·  5Comments

bsutton picture bsutton  Â·  6Comments