getBaseUrl method
Endpoint used: GET /at-home/server/{id}
gets base URL of a chapter with the given chapterId
or uuid
Returns the Base Url data in a BaseUrl
class instance
Implementation
Future<BaseUrl> getBaseUrl(
String chapterId,
) async {
var response = await getBaseUrlResponse(chapterId);
try {
return BaseUrl.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}