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