1
This commit is contained in:
39
lib/request/dto/room/room_info_dto.dart
Normal file
39
lib/request/dto/room/room_info_dto.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user