import 'package:PiliPlus/models_new/space/space_season_series/stat.dart';

class SpaceSsArchive {
  int? aid;
  String? bvid;
  int? ctime;
  int? duration;
  bool? enableVt;
  bool? interactiveVideo;
  String? pic;
  int? playbackPosition;
  int? pubdate;
  SpaceSsStat? stat;
  int? state;
  String? title;
  int? ugcPay;
  String? vtDisplay;
  int? isLessonVideo;

  SpaceSsArchive({
    this.aid,
    this.bvid,
    this.ctime,
    this.duration,
    this.enableVt,
    this.interactiveVideo,
    this.pic,
    this.playbackPosition,
    this.pubdate,
    this.stat,
    this.state,
    this.title,
    this.ugcPay,
    this.vtDisplay,
    this.isLessonVideo,
  });

  factory SpaceSsArchive.fromJson(Map<String, dynamic> json) => SpaceSsArchive(
        aid: json["aid"],
        bvid: json["bvid"],
        ctime: json["ctime"],
        duration: json["duration"],
        enableVt: json["enable_vt"],
        interactiveVideo: json["interactive_video"],
        pic: json["pic"],
        playbackPosition: json["playback_position"],
        pubdate: json["pubdate"],
        stat: json["stat"] == null ? null : SpaceSsStat.fromJson(json["stat"]),
        state: json["state"],
        title: json["title"],
        ugcPay: json["ugc_pay"],
        vtDisplay: json["vt_display"],
        isLessonVideo: json["is_lesson_video"],
      );
}
