mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
18 lines
422 B
Dart
18 lines
422 B
Dart
import 'package:apidash/consts.dart';
|
|
import 'package:apidash_core/apidash_core.dart';
|
|
import 'curl/curl.dart';
|
|
|
|
class Importer {
|
|
Future<HttpRequestModel?> getHttpRequestModel(
|
|
ImportFormat fileType,
|
|
String content,
|
|
) async {
|
|
return switch (fileType) {
|
|
ImportFormat.curl => CurlFileImport().getHttpRequestModel(content),
|
|
ImportFormat.postman => null
|
|
};
|
|
}
|
|
}
|
|
|
|
final kImporter = Importer();
|