Update importer.dart

This commit is contained in:
Ashita Prasad
2024-12-26 05:14:18 +05:30
parent e89118b22d
commit 328f5ffee9

View File

@@ -2,12 +2,15 @@ import 'package:apidash/consts.dart';
import 'package:apidash_core/apidash_core.dart';
class Importer {
Future<List<HttpRequestModel>?> getHttpRequestModelList(
Future<List<(String?, HttpRequestModel)>?> 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
};
}