doomRoomAllInfo method

Future<List<DoomRoom>> doomRoomAllInfo()

Implementation

Future<List<DoomRoom>> doomRoomAllInfo() async {
  final jsonList = await repository.doomRoomAll();
  List<DoomRoom> doomRoomList = [];

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

  return doomRoomList;
}