import 'dart:convert'; /// id : 76 /// short_id : 75 /// name : "Mrs. Gu, your disguise has been exposed" /// short_play_video_id : 3572 /// description : "Since Xu Mumu married Gu Beichen, the family of three has been living their own small and happy life in a low-key manner. But Xu Mumu is not willing to be a full-time housewife from then on and is determined to create her own" /// short_play_id : 76 /// image_url : "https://static.wanmwl.com/image/4e123202511fcb209b0d.webp" /// episode_total : 18 /// current_episode : 1 /// updated_at : "2025-07-04 06:19:21" /// is_collect : 1 /// category : ["Dominant CEO Romance","Sweet Romance "] KtHistoryVideoBean ktHistoryVideoBeanFromJson(String str) => KtHistoryVideoBean.fromJson(json.decode(str)); String ktHistoryVideoBeanToJson(KtHistoryVideoBean data) => json.encode(data.toJson()); class KtHistoryVideoBean { KtHistoryVideoBean({ num? id, num? shortId, String? name, num? shortPlayVideoId, String? description, num? shortPlayId, String? imageUrl, num? episodeTotal, num? currentEpisode, String? updatedAt, num? isCollect, List? category, }) { _id = id; _shortId = shortId; _name = name; _shortPlayVideoId = shortPlayVideoId; _description = description; _shortPlayId = shortPlayId; _imageUrl = imageUrl; _episodeTotal = episodeTotal; _currentEpisode = currentEpisode; _updatedAt = updatedAt; _isCollect = isCollect; _category = category; } KtHistoryVideoBean.fromJson(dynamic json) { _id = json['id']; _shortId = json['short_id']; _name = json['name']; _shortPlayVideoId = json['short_play_video_id']; _description = json['description']; _shortPlayId = json['short_play_id']; _imageUrl = json['image_url']; _episodeTotal = json['episode_total']; _currentEpisode = json['current_episode']; _updatedAt = json['updated_at']; _isCollect = json['is_collect']; _category = json['category'] != null ? json['category'].cast() : []; } num? _id; num? _shortId; String? _name; num? _shortPlayVideoId; String? _description; num? _shortPlayId; String? _imageUrl; num? _episodeTotal; num? _currentEpisode; String? _updatedAt; num? _isCollect; List? _category; KtHistoryVideoBean copyWith({ num? id, num? shortId, String? name, num? shortPlayVideoId, String? description, num? shortPlayId, String? imageUrl, num? episodeTotal, num? currentEpisode, String? updatedAt, num? isCollect, List? category, }) => KtHistoryVideoBean( id: id ?? _id, shortId: shortId ?? _shortId, name: name ?? _name, shortPlayVideoId: shortPlayVideoId ?? _shortPlayVideoId, description: description ?? _description, shortPlayId: shortPlayId ?? _shortPlayId, imageUrl: imageUrl ?? _imageUrl, episodeTotal: episodeTotal ?? _episodeTotal, currentEpisode: currentEpisode ?? _currentEpisode, updatedAt: updatedAt ?? _updatedAt, isCollect: isCollect ?? _isCollect, category: category ?? _category, ); num? get id => _id; num? get shortId => _shortId; String? get name => _name; num? get shortPlayVideoId => _shortPlayVideoId; String? get description => _description; num? get shortPlayId => _shortPlayId; String? get imageUrl => _imageUrl; num? get episodeTotal => _episodeTotal; num? get currentEpisode => _currentEpisode; String? get updatedAt => _updatedAt; num? get isCollect => _isCollect; List? get category => _category; set isCollect(num? value) => _isCollect = value; Map toJson() { final map = {}; map['id'] = _id; map['short_id'] = _shortId; map['name'] = _name; map['short_play_video_id'] = _shortPlayVideoId; map['description'] = _description; map['short_play_id'] = _shortPlayId; map['image_url'] = _imageUrl; map['episode_total'] = _episodeTotal; map['current_episode'] = _currentEpisode; map['updated_at'] = _updatedAt; map['is_collect'] = _isCollect; map['category'] = _category; return map; } }