@override int fromJson(String json) { double d = double.parse(json); int number = d.toInt(); return number; }