getMangaReadingStatus function Null safety
Implementation
Future<MangaReadingStatus> getMangaReadingStatus(
String token, String mangaId) async {
var unencodedPath = '/manga/$mangaId/status';
final uri = 'https://$authority$unencodedPath';
var response = await http.get(Uri.parse(uri), headers: {
HttpHeaders.contentTypeHeader: 'application/json',
HttpHeaders.authorizationHeader: 'Bearer $token'
});
return MangaReadingStatus.fromJson(jsonDecode(response.body));
}