mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
31 lines
746 B
Dart
31 lines
746 B
Dart
import 'package:PiliPlus/models_new/live/live_search/room.dart';
|
|
import 'package:PiliPlus/models_new/live/live_search/user.dart';
|
|
|
|
class LiveSearchData {
|
|
String? type;
|
|
int? page;
|
|
int? pagesize;
|
|
Room? room;
|
|
User? user;
|
|
|
|
LiveSearchData({
|
|
this.type,
|
|
this.page,
|
|
this.pagesize,
|
|
this.room,
|
|
this.user,
|
|
});
|
|
|
|
factory LiveSearchData.fromJson(Map<String, dynamic> json) => LiveSearchData(
|
|
type: json['type'] as String?,
|
|
page: json['page'] as int?,
|
|
pagesize: json['pagesize'] as int?,
|
|
room: json['room'] == null
|
|
? null
|
|
: Room.fromJson(json['room'] as Map<String, dynamic>),
|
|
user: json['user'] == null
|
|
? null
|
|
: User.fromJson(json['user'] as Map<String, dynamic>),
|
|
);
|
|
}
|