cohortStatusNow method

Future<Map<String, dynamic>> cohortStatusNow()

Implementation

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

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

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