mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
apidash_core: contents moved into better_networking package
This commit is contained in:
11
packages/better_networking/lib/utils/graphql_utils.dart
Normal file
11
packages/better_networking/lib/utils/graphql_utils.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import '../consts.dart';
|
||||
import '../models/models.dart';
|
||||
|
||||
String? getGraphQLBody(HttpRequestModel httpRequestModel) {
|
||||
if (httpRequestModel.hasQuery) {
|
||||
return kJsonEncoder.convert({
|
||||
"query": httpRequestModel.query,
|
||||
});
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user