Add missing AnyType type mapping (#6196)

Without the AnyType type mapping, the generated dart code uses `AnyType` instead of  `Object`, which does not compile.
This commit is contained in:
adg-mh 2020-05-07 08:09:55 -05:00 committed by GitHub
parent 7800dbe35a
commit 5f2270a0e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,7 @@ public class DartDioClientCodegen extends DartClientCodegen {
typeMapping.put("file", "Uint8List"); typeMapping.put("file", "Uint8List");
typeMapping.put("binary", "Uint8List"); typeMapping.put("binary", "Uint8List");
typeMapping.put("AnyType", "Object");
importMapping.put("BuiltList", "package:built_collection/built_collection.dart"); importMapping.put("BuiltList", "package:built_collection/built_collection.dart");
importMapping.put("BuiltMap", "package:built_collection/built_collection.dart"); importMapping.put("BuiltMap", "package:built_collection/built_collection.dart");