mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 10:17:47 +08:00
getHttpRequestModel() -> getHttpRequestModelList()
This commit is contained in:
@@ -2,12 +2,12 @@ import 'package:apidash/consts.dart';
|
||||
import 'package:apidash_core/apidash_core.dart';
|
||||
|
||||
class Importer {
|
||||
Future<List<HttpRequestModel>?> getHttpRequestModel(
|
||||
Future<List<HttpRequestModel>?> getHttpRequestModelList(
|
||||
ImportFormat fileType,
|
||||
String content,
|
||||
) async {
|
||||
return switch (fileType) {
|
||||
ImportFormat.curl => CurlIO().getHttpRequestModel(content),
|
||||
ImportFormat.curl => CurlIO().getHttpRequestModelList(content),
|
||||
ImportFormat.postman => null
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user