import '../../model/video/video_model.dart'; /// Resource : {"Id":"22","Name":"爱奇艺2","Createtime":"1464659723000","Picture":"http://buwan-1255749512.cos.ap-guangzhou.myqcloud.com/resource/source/iqiyi.png","Checked":false} /// Url : "http://m.iqiyi.com/v_19rrk83jpg.html?vfm=m_330_hjvap" /// PlayType : 1 /// Params : "" class VideoPlayUrlModel { VideoPlayUrlModel({ VideoResource? resource, String? url, int? playType, String? params, }) { _resource = resource; _url = url; _playType = playType; _params = params; } VideoPlayUrlModel.fromJson(dynamic json) { _resource = json['Resource'] != null ? VideoResource.fromJson(json['Resource']) : null; _url = json['Url']; _playType = json['PlayType']; _params = json['Params']; } VideoResource? _resource; String? _url; int? _playType; String? _params; VideoResource? get resource => _resource; String? get url => _url; int? get playType => _playType; String? get params => _params; Map toJson() { final map = {}; if (_resource != null) { map['Resource'] = _resource?.toJson(); } map['Url'] = _url; map['PlayType'] = _playType; map['Params'] = _params; return map; } }