AIRequests: Removed AIResponseModel & sendRequest implemented

This commit is contained in:
Manas Hejmadi
2025-06-08 21:53:40 +05:30
parent b890769854
commit 97d4a7a45b
12 changed files with 97 additions and 569 deletions

View File

@@ -8,6 +8,13 @@ enum APIType {
const APIType(this.label, this.abbr);
final String label;
final String abbr;
static fromMethod(String method) {
return HTTPVerb.values.firstWhere(
(model) => model.name == method.toLowerCase(),
orElse: () => throw ArgumentError('INVALID HTTP METHOD'),
);
}
}
enum APIAuthType {