///
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
class VideoData {
/*
{
  "VideoId": 1,
  "VideoCatalogId": 0,
  "YoutubeVideoId": "eVt98Zez1jI",
  "VietnameseName": "Hí anh em",
  "EnglishName": "Hí anh em",
  "VietnameseSlug": "string",
  "EnglishSlug": "string",
  "VietnameseKeyword": "string",
  "VietnameseDescription": "string",
  "EnglishKeyword": "string",
  "EnglishDescription": "string",
  "VietnameseContent": "string",
  "EnglishContent": "string",
  "IsActive": true,
  "IsFeature": true,
  "CatalogName": "string",
  "CreateBy": 0,
  "CreateName": "string",
  "CreateDate": "2021-09-06T14:28:52.500Z",
  "LastUpdateDate": "2021-09-06T14:28:52.500Z",
  "UpdateName": "string",
  "LastUpdateBy": 0,
  "RowNumber": 0
}
*/

  int? VideoId;
  int? VideoCatalogId;
  String? YoutubeVideoId;
  String? VietnameseName;
  String ?EnglishName;
  String ?VietnameseSlug;
  String ?EnglishSlug;
  String ?VietnameseKeyword;
  String ?VietnameseDescription;
  String ?EnglishKeyword;
  String ?EnglishDescription;
  String ?VietnameseContent;
  String ?EnglishContent;
  bool ?IsActive;
  bool ?IsFeature;
  String? CatalogName;
  int ?CreateBy;
  String? CreateName;
  String? CreateDate;
  String? LastUpdateDate;
  String? UpdateName;
  int ?LastUpdateBy;
  int ?RowNumber;

  VideoData({
    this.VideoId,
    this.VideoCatalogId,
    this.YoutubeVideoId,
    this.VietnameseName,
    this.EnglishName,
    this.VietnameseSlug,
    this.EnglishSlug,
    this.VietnameseKeyword,
    this.VietnameseDescription,
    this.EnglishKeyword,
    this.EnglishDescription,
    this.VietnameseContent,
    this.EnglishContent,
    this.IsActive,
    this.IsFeature,
    this.CatalogName,
    this.CreateBy,
    this.CreateName,
    this.CreateDate,
    this.LastUpdateDate,
    this.UpdateName,
    this.LastUpdateBy,
    this.RowNumber,
  });
  VideoData.fromJson(Map<String, dynamic> json) {
    VideoId = json["VideoId"]?.toInt();
    VideoCatalogId = json["VideoCatalogId"]?.toInt();
    YoutubeVideoId = json["YoutubeVideoId"]?.toString();
    VietnameseName = json["VietnameseName"]?.toString();
    EnglishName = json["EnglishName"]?.toString();
    VietnameseSlug = json["VietnameseSlug"]?.toString();
    EnglishSlug = json["EnglishSlug"]?.toString();
    VietnameseKeyword = json["VietnameseKeyword"]?.toString();
    VietnameseDescription = json["VietnameseDescription"]?.toString();
    EnglishKeyword = json["EnglishKeyword"]?.toString();
    EnglishDescription = json["EnglishDescription"]?.toString();
    VietnameseContent = json["VietnameseContent"]?.toString();
    EnglishContent = json["EnglishContent"]?.toString();
    IsActive = json["IsActive"];
    IsFeature = json["IsFeature"];
    CatalogName = json["CatalogName"]?.toString();
    CreateBy = json["CreateBy"]?.toInt();
    CreateName = json["CreateName"]?.toString();
    CreateDate = json["CreateDate"]?.toString();
    LastUpdateDate = json["LastUpdateDate"]?.toString();
    UpdateName = json["UpdateName"]?.toString();
    LastUpdateBy = json["LastUpdateBy"]?.toInt();
    RowNumber = json["RowNumber"]?.toInt();
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data["VideoId"] = VideoId;
    data["VideoCatalogId"] = VideoCatalogId;
    data["YoutubeVideoId"] = YoutubeVideoId;
    data["VietnameseName"] = VietnameseName;
    data["EnglishName"] = EnglishName;
    data["VietnameseSlug"] = VietnameseSlug;
    data["EnglishSlug"] = EnglishSlug;
    data["VietnameseKeyword"] = VietnameseKeyword;
    data["VietnameseDescription"] = VietnameseDescription;
    data["EnglishKeyword"] = EnglishKeyword;
    data["EnglishDescription"] = EnglishDescription;
    data["VietnameseContent"] = VietnameseContent;
    data["EnglishContent"] = EnglishContent;
    data["IsActive"] = IsActive;
    data["IsFeature"] = IsFeature;
    data["CatalogName"] = CatalogName;
    data["CreateBy"] = CreateBy;
    data["CreateName"] = CreateName;
    data["CreateDate"] = CreateDate;
    data["LastUpdateDate"] = LastUpdateDate;
    data["UpdateName"] = UpdateName;
    data["LastUpdateBy"] = LastUpdateBy;
    data["RowNumber"] = RowNumber;
    return data;
  }
}

class VideoResponse {
/*
{
  "totalRecord": 0,
  "isSuccess": true,
  "errorMesssage": "string",
  "Data": [
    {
      "VideoId": 1,
      "VideoCatalogId": 0,
      "YoutubeVideoId": "eVt98Zez1jI",
      "VietnameseName": "Hí anh em",
      "EnglishName": "Hí anh em",
      "VietnameseSlug": "string",
      "EnglishSlug": "string",
      "VietnameseKeyword": "string",
      "VietnameseDescription": "string",
      "EnglishKeyword": "string",
      "EnglishDescription": "string",
      "VietnameseContent": "string",
      "EnglishContent": "string",
      "IsActive": true,
      "IsFeature": true,
      "CatalogName": "string",
      "CreateBy": 0,
      "CreateName": "string",
      "CreateDate": "2021-09-06T14:28:52.500Z",
      "LastUpdateDate": "2021-09-06T14:28:52.500Z",
      "UpdateName": "string",
      "LastUpdateBy": 0,
      "RowNumber": 0
    }
  ],
  "message": "string"
}
*/

  int? totalRecord;
  bool? isSuccess;
  String? errorMesssage;
  List<VideoData>? Data;
  String? message;

  VideoResponse({
    this.totalRecord,
    this.isSuccess,
    this.errorMesssage,
    this.Data,
    this.message,
  });
  VideoResponse.fromJson(Map<String, dynamic> json) {
    totalRecord = json["totalRecord"]?.toInt();
    isSuccess = json["isSuccess"];
    errorMesssage = json["errorMesssage"]?.toString();
    if (json["Data"] != null) {
      final v = json["Data"];
      final arr0 = <VideoData>[];
      v.forEach((v) {
        arr0.add(VideoData.fromJson(v));
      });
      Data = arr0;
    }
    message = json["message"]?.toString();
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data["totalRecord"] = totalRecord;
    data["isSuccess"] = isSuccess;
    data["errorMesssage"] = errorMesssage;
    if (Data != null) {
      final v = Data;
      final arr0 = [];
      v!.forEach((v) {
        arr0.add(v.toJson());
      });
      data["Data"] = arr0;
    }
    data["message"] = message;
    return data;
  }
}
