We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93db917 commit 36ca4a3Copy full SHA for 36ca4a3
lib/src/utils/content_type.dart
@@ -0,0 +1,8 @@
1
+String getContentType<T>(content) {
2
+ switch (T) {
3
+ case Map<String, dynamic>:
4
+ return 'application/json';
5
+ default:
6
+ return 'text/plain';
7
+ }
8
+}
0 commit comments