getListOfCharacters method

Future<List<Character>> getListOfCharacters(
  1. List<int> ids
)

Implementation

Future<List<Character>> getListOfCharacters(List<int> ids) async {
  List<Map<String, dynamic>> objects = await super.getAllEntities(
      '${Constants.baseURL}${Constants.characterEndpoint}/$ids');

  return List<Character>.from(objects.map((x) => Character.fromJson(x)));
}