startClass static method

开始上课 用于开始一个新的课堂会话 通过HTTP请求与后端API交互

Implementation

static Future<TCICStartClassRepModel?> startClass(StartClassBody body) async {
  var data = await HttpClient.post<TCICStartClassRepModel, StartClassBody>(
    api: "/v1/class/start",
    body: body,
    fromJson: TCICStartClassRepModel.fromJson,
  );

  return data;
}