1
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
class RoomInfoDto {
|
||||
|
||||
|
||||
RoomInfoDto({
|
||||
required this.teacherBackground,
|
||||
required this.teacherAvatar,
|
||||
required this.roomName,
|
||||
required this.startTime,
|
||||
required this.teacherName,
|
||||
@@ -11,6 +10,7 @@ class RoomInfoDto {
|
||||
});
|
||||
|
||||
String teacherBackground;
|
||||
String teacherAvatar;
|
||||
String roomName;
|
||||
String startTime;
|
||||
String teacherName;
|
||||
@@ -20,6 +20,7 @@ class RoomInfoDto {
|
||||
factory RoomInfoDto.fromJson(Map<dynamic, dynamic> json) =>
|
||||
RoomInfoDto(
|
||||
teacherBackground: json["teacher_background"],
|
||||
teacherAvatar: json["teacher_avatar"],
|
||||
roomName: json["room_name"],
|
||||
startTime: json["start_time"],
|
||||
teacherName: json["teacher_name"],
|
||||
@@ -30,6 +31,7 @@ class RoomInfoDto {
|
||||
Map<dynamic, dynamic> toJson() =>
|
||||
{
|
||||
"teacher_background": teacherBackground,
|
||||
"teacher_avatar": teacherAvatar,
|
||||
"room_name": roomName,
|
||||
"start_time": startTime,
|
||||
"teacher_name": teacherName,
|
||||
|
||||
Reference in New Issue
Block a user