Cleanup
This commit is contained in:
1 parent
fea36b9a6d
commit
edd8c1600a
27 files changed
+17
-87
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:marianum_mobile/api/apiRequest.dart';
|
||||
import 'package:marianum_mobile/api/apiResponse.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import '../../apiParams.dart';
|
||||
@@ -42,7 +38,7 @@ abstract class TalkApi<T> extends ApiRequest {
|
||||
headers?.putIfAbsent("OCS-APIRequest", () => "true");
|
||||
|
||||
http.Response data = await request(endpoint, body, headers);
|
||||
dynamic jsonData = jsonDecode(data.body);
|
||||
//dynamic jsonData = jsonDecode(data.body);
|
||||
|
||||
|
||||
return assemble(data.body);
|
||||
|
||||
Reference in new issue
Block a user