From 92a5544ba03fd595dcfc46b572dc23f8bc542837 Mon Sep 17 00:00:00 2001 From: David Miguel Lozano Date: Wed, 6 Jul 2022 19:22:02 +0200 Subject: [PATCH] Fix model package name import in Dart json_serializable (#12615) --- .../dio/serialization/json_serializable/deserialize.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/deserialize.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/deserialize.mustache index d2cfeea2a01..edb8887328c 100644 --- a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/deserialize.mustache +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/deserialize.mustache @@ -1,7 +1,7 @@ {{#models}} {{#model}} {{^isEnum}} -import 'package:{{pubName}}/src/model/{{classFilename}}.dart'; +import 'package:{{pubName}}/{{sourceFolder}}/{{modelPackage}}/{{classFilename}}.dart'; {{/isEnum}} {{/model}} {{/models}}