getCustomList function Null safety
- String listId
Gets the data of the customList identified by it's listId
or list uuid and returns a CustomListResponse
containing the data.
Implementation
Future<CustomListResponse> getCustomList(String listId) async {
var response = await getCustomListResponse(listId);
try {
return CustomListResponse.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}