getScanlationGroupById method

Future<Scanlation> getScanlationGroupById(
  1. String groupId
)
inherited

Endpoint used: GET /group/{id}

Returns an Scanlation class instance containing info of a Scanlation Group identified by it's groupId or UUID

Implementation

Future<Scanlation> getScanlationGroupById(String groupId) async {
  var response = await getScanlationGroupByIdResponse(groupId);
  try {
    return Scanlation.fromJson(jsonDecode(response.body));
  } on Exception {
    throw MangadexServerException(jsonDecode(response.body));
  }
}