mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
20 lines
532 B
Dart
20 lines
532 B
Dart
import 'package:PiliPlus/models_new/live/live_search/room_item.dart';
|
|
|
|
class Room {
|
|
List<LiveSearchRoomItemModel>? list;
|
|
int? totalRoom;
|
|
int? totalPage;
|
|
|
|
Room({this.list, this.totalRoom, this.totalPage});
|
|
|
|
factory Room.fromJson(Map<String, dynamic> json) => Room(
|
|
list: (json['list'] as List<dynamic>?)
|
|
?.map(
|
|
(e) => LiveSearchRoomItemModel.fromJson(e as Map<String, dynamic>),
|
|
)
|
|
.toList(),
|
|
totalRoom: json['total_room'] as int?,
|
|
totalPage: json['total_page'] as int?,
|
|
);
|
|
}
|