Files
PiliPlus/lib/models/live/live_feed_index/live_feed_index.dart
bggRGjQaUbCoE 562f9035e8 refa: live page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-05 17:50:02 +08:00

27 lines
660 B
Dart

import 'data.dart';
class LiveFeedIndex {
int? code;
String? message;
int? ttl;
LiveIndexData? data;
LiveFeedIndex({this.code, this.message, this.ttl, this.data});
factory LiveFeedIndex.fromJson(Map<String, dynamic> json) => LiveFeedIndex(
code: json['code'] as int?,
message: json['message'] as String?,
ttl: json['ttl'] as int?,
data: json['data'] == null
? null
: LiveIndexData.fromJson(json['data'] as Map<String, dynamic>),
);
Map<String, dynamic> toJson() => {
'code': code,
'message': message,
'ttl': ttl,
'data': data?.toJson(),
};
}