cohortStatus method

Future<List<Map<String, dynamic>>> cohortStatus()

Implementation

Future<List<Map<String, dynamic>>> cohortStatus() async {
  Response resp = await _cohortProvider.cohortStatus();
  dynamic body = resp.body;

  dynamic convertBody = convertUtf8ToObject(body);
  ServerRespDto serverRespDto = ServerRespDto.fromJson(convertBody);

  if (serverRespDto.code == 1) {
    List<Map<String, dynamic>> data = serverRespDto.data;
    return data;
  } else {
    return [];
  }
}