mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-19 15:44:24 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
21
lib/models/video_detail/video_detail_response.dart
Normal file
21
lib/models/video_detail/video_detail_response.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
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>),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user