diff --git a/lib/src/commands/service_generators/map.dart b/lib/src/commands/service_generators/map.dart index ec7b1499..4b1dec7e 100644 --- a/lib/src/commands/service_generators/map.dart +++ b/lib/src/commands/service_generators/map.dart @@ -8,8 +8,8 @@ class MapServiceGenerator extends ServiceGenerator { bool get createsModel => false; @override - ExpressionBuilder createInstance( + Expression createInstance( MethodBuilder methodBuilder, String name, String lower) { - return new TypeBuilder('MapService').newInstance([]); + return refer('MapService').newInstance([]); } }