123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- class VideoDetail {
- String title;
- String imageUrl;
- String starring;
- String releaseTime;
- String score;
- String description;
- List<String> videoUrl;
- List<String> downloadUrl;
- VideoDetail({
- this.title,
- this.imageUrl,
- this.starring,
- this.releaseTime,
- this.score,
- this.description,
- this.videoUrl,
- this.downloadUrl,
- });
- VideoDetail.fromJson(Map<String, dynamic> json) {
- title = json['title'];
- imageUrl = json['imageUrl'];
- starring = json['starring'];
- releaseTime = json['releaseTime'];
- score = json['score'];
- description = json['description'];
- videoUrl = json['videoUrl']?.cast<String>();
- videoUrl = json['downloadUrl']?.cast<String>();
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['title'] = this.title;
- data['imageUrl'] = this.imageUrl;
- data['starring'] = this.starring;
- data['releaseTime'] = this.releaseTime;
- data['score'] = this.score;
- data['description'] = this.description;
- data['videoUrl'] = this.videoUrl;
- data['downloadUrl'] = this.videoUrl;
- return data;
- }
- }
|