dart now uses double instead of num to represent double

This commit is contained in:
Anton WIMMER 2016-03-31 16:14:46 +02:00
parent c39bf41d10
commit be23d44f12

View File

@ -52,9 +52,8 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig {
Arrays.asList(
"String",
"bool",
"num",
"int",
"float")
"double")
);
instantiationTypes.put("array", "List");
instantiationTypes.put("map", "Map");
@ -66,11 +65,11 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig {
typeMapping.put("boolean", "bool");
typeMapping.put("string", "String");
typeMapping.put("int", "int");
typeMapping.put("float", "num");
typeMapping.put("float", "double");
typeMapping.put("long", "int");
typeMapping.put("short", "int");
typeMapping.put("char", "String");
typeMapping.put("double", "num");
typeMapping.put("double", "double");
typeMapping.put("object", "Object");
typeMapping.put("integer", "int");
typeMapping.put("Date", "DateTime");