getScanlationGroup method
Future<ScanlationsResult>
getScanlationGroup({
- int? limit,
- int? offset,
- List<
String> ? ids, - String? name,
- LanguageCodes? focussedLanguage,
- List<
String> ? includes, - Map<
ScanlationOrders, OrderDirections> ? order,
inherited
Endpoint used: GET /group
Search for a scanlation group with the name
and returns limit
number of results
from offset
which may focus on the given focussedLanguage
and returns a
ScanlationsResult
class instance that contains all the information.
Implementation
Future<ScanlationsResult> getScanlationGroup({
int? limit,
int? offset,
List<String>? ids,
String? name,
LanguageCodes? focussedLanguage,
List<String>? includes,
Map<ScanlationOrders, OrderDirections>? order,
}) async {
var response = await getScanlationGroupResponse(
limit: limit,
offset: offset,
ids: ids,
name: name,
focussedLanguage: focussedLanguage,
includes: includes,
order: order,
);
try {
return ScanlationsResult.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}