getScanlationGroup method

Future<ScanlationsResult> getScanlationGroup({
  1. int? limit,
  2. int? offset,
  3. List<String>? ids,
  4. String? name,
  5. LanguageCodes? focussedLanguage,
  6. List<String>? includes,
  7. 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));
  }
}