Files
xueguang_flutter_app/lib/request/dto/room/room_info_dto.dart
zhutao b7239292d1 1
2025-11-20 18:00:34 +08:00

40 lines
913 B
Dart

class RoomInfoDto {
RoomInfoDto({
required this.teacherBackground,
required this.roomName,
required this.startTime,
required this.teacherName,
required this.endTime,
required this.id,
});
String teacherBackground;
String roomName;
String startTime;
String teacherName;
String endTime;
int id;
factory RoomInfoDto.fromJson(Map<dynamic, dynamic> json) =>
RoomInfoDto(
teacherBackground: json["teacher_background"],
roomName: json["room_name"],
startTime: json["start_time"],
teacherName: json["teacher_name"],
endTime: json["end_time"],
id: json["id"],
);
Map<dynamic, dynamic> toJson() =>
{
"teacher_background": teacherBackground,
"room_name": roomName,
"start_time": startTime,
"teacher_name": teacherName,
"end_time": endTime,
"id": id,
};
}