charafau / json2builtvalue

Json to Dart built_value classes generator
Apache License 2.0
153 stars 24 forks source link

Doubles parsed as ints #10

Open j14y opened 4 years ago

j14y commented 4 years ago

The generator incorrectly parses double values as int when the fractional part of double consists solely zeros.

For example, 1.0 or 1.00 both resolve to int wheres 1.1 or 1.01 would resolve to double. The latter case should always hold for either scenario.