mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 02:26:52 +08:00
22 lines
576 B
Dart
22 lines
576 B
Dart
import 'package:PiliPlus/models/video_detail/data.dart';
|
|
|
|
class VideoDetailResponse {
|
|
int? code;
|
|
String? message;
|
|
int? ttl;
|
|
VideoDetailData? data;
|
|
|
|
VideoDetailResponse({this.code, this.message, this.ttl, this.data});
|
|
|
|
factory VideoDetailResponse.fromJson(Map<String, dynamic> json) {
|
|
return VideoDetailResponse(
|
|
code: json['code'] as int?,
|
|
message: json['message'] as String?,
|
|
ttl: json['ttl'] as int?,
|
|
data: json['data'] == null
|
|
? null
|
|
: VideoDetailData.fromJson(json['data'] as Map<String, dynamic>),
|
|
);
|
|
}
|
|
}
|