doomFacilAllInfo method

Future<List<DoomFacility>> doomFacilAllInfo()

Implementation

Future<List<DoomFacility>> doomFacilAllInfo() async {
  final jsonList = await repository.doomFacilAll();
  List<DoomFacility> doomFacilList = [];

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

  return doomFacilList;
}