|
@@ -22,7 +22,7 @@ namespace FlutterCodeGenerator.Map
|
|
|
GenerateDataCache.Instance.CurrentMethod = MethodName;
|
|
|
ParameterModelTypes = new List<ModelType>();
|
|
|
Type returnParameterType;
|
|
|
- if (!method.ReturnType.IsGenericType)
|
|
|
+ if (method.ReturnType.Name != "Task`1")
|
|
|
{
|
|
|
returnParameterType = method.ReturnType;
|
|
|
}
|