mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 10:17:47 +08:00
16 lines
366 B
Dart
16 lines
366 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 {
|
|
switch (fileType) {
|
|
case ImportFormat.curl:
|
|
return CurlFileImport().getHttpRequestModel(content);
|
|
}
|
|
}
|
|
}
|