getFileList static method
업로드 파일 목록 조회
Implementation
static Future<List<FileModel>> getFileList({required String roomId}) async {
Uri uri = ApiPath.getFileList.addGetParam({'roomId': roomId});
final response = await get(uri);
final body = json.decode(response.body);
List<FileModel> list = [
for (var i = 0; i < body['data']['list'].length; i++)
FileModel.fromJson(body['data']['list'][i] as Map<String, dynamic>)
];
return list;
}