doomAllInfo method

Future<List<Doom>> doomAllInfo()

Implementation

Future<List<Doom>> doomAllInfo() async {
  final jsonList = await repository.doomAll();
  List<Doom> doomList = [];

  for (Map<String, dynamic> json in jsonList) {
    doomList.add(Doom.fromJson(json));
  }

  return doomList;
}