json2builtvalue icon indicating copy to clipboard operation
json2builtvalue copied to clipboard

Does not handle cases where the list is empty

Open miyoyo opened this issue 7 years ago • 2 comments

https://github.com/charafau/json2builtvalue/blob/677fe7721c6ed7cd41e611914640c0e7971e63e3/lib/parser.dart#L159

miyoyo avatar Aug 05 '18 00:08 miyoyo

thanks for comment. surely tests would cover that. real question is, what should generator do in that case? probably skip field.

charafau avatar Aug 13 '18 22:08 charafau

Either skip the field or make it dynamic, whatever you feel more comfortable with

miyoyo avatar Aug 13 '18 23:08 miyoyo