From 328f5ffee9c7a5d2f4b4522a8efd8da7a97c77a4 Mon Sep 17 00:00:00 2001 From: Ashita Prasad Date: Thu, 26 Dec 2024 05:14:18 +0530 Subject: [PATCH] Update importer.dart --- lib/importer/importer.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/importer/importer.dart b/lib/importer/importer.dart index d751406a..af1de596 100644 --- a/lib/importer/importer.dart +++ b/lib/importer/importer.dart @@ -2,12 +2,15 @@ import 'package:apidash/consts.dart'; import 'package:apidash_core/apidash_core.dart'; class Importer { - Future?> getHttpRequestModelList( + Future?> getHttpRequestModelList( ImportFormat fileType, String content, ) async { return switch (fileType) { - ImportFormat.curl => CurlIO().getHttpRequestModelList(content), + ImportFormat.curl => CurlIO() + .getHttpRequestModelList(content) + ?.map((t) => (null, t)) + .toList(), ImportFormat.postman => null }; }