video view more
This commit is contained in:
@@ -14,16 +14,16 @@ class ContentBytesCategoriesModel {
|
||||
if (json['data'] != null) {
|
||||
data = <Data>[];
|
||||
json['data'].forEach((v) {
|
||||
data!.add(Data.fromJson(v));
|
||||
data!.add(new Data.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['status'] = status;
|
||||
data['status_code'] = statusCode;
|
||||
data['message'] = message;
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['status'] = this.status;
|
||||
data['status_code'] = this.statusCode;
|
||||
data['message'] = this.message;
|
||||
if (this.data != null) {
|
||||
data['data'] = this.data!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
@@ -33,51 +33,25 @@ class ContentBytesCategoriesModel {
|
||||
|
||||
class Data {
|
||||
int? id;
|
||||
String? contentType;
|
||||
String? title;
|
||||
String? description;
|
||||
String? tags;
|
||||
String? file;
|
||||
int? categoryId;
|
||||
String? image;
|
||||
String? categoryName;
|
||||
String? categoryDescription;
|
||||
String? isActive;
|
||||
|
||||
Data({
|
||||
this.id,
|
||||
this.contentType,
|
||||
this.title,
|
||||
this.description,
|
||||
this.tags,
|
||||
this.file,
|
||||
this.categoryId,
|
||||
this.image,
|
||||
this.isActive,
|
||||
});
|
||||
Data({this.id, this.categoryName, this.categoryDescription, this.isActive});
|
||||
|
||||
Data.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
contentType = json['content_type'];
|
||||
title = json['title'];
|
||||
description = json['description'];
|
||||
tags = json['tags'];
|
||||
file = json['file'];
|
||||
categoryId = json['category_id'];
|
||||
image = json['image'];
|
||||
categoryName = json['category_name'];
|
||||
categoryDescription = json['category_description'];
|
||||
isActive = json['is_active'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['id'] = id;
|
||||
data['content_type'] = contentType;
|
||||
data['title'] = title;
|
||||
data['description'] = description;
|
||||
data['tags'] = tags;
|
||||
data['file'] = file;
|
||||
data['category_id'] = categoryId;
|
||||
data['image'] = image;
|
||||
data['is_active'] = isActive;
|
||||
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['category_name'] = this.categoryName;
|
||||
data['category_description'] = this.categoryDescription;
|
||||
data['is_active'] = this.isActive;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
84
lib/model/ContentBytesModel/more_video_model.dart
Normal file
84
lib/model/ContentBytesModel/more_video_model.dart
Normal file
@@ -0,0 +1,84 @@
|
||||
class VideoMoreModel {
|
||||
String? status;
|
||||
int? statusCode;
|
||||
String? message;
|
||||
List<Data>? data;
|
||||
|
||||
VideoMoreModel({this.status, this.statusCode, this.message, this.data});
|
||||
|
||||
VideoMoreModel.fromJson(Map<String, dynamic> json) {
|
||||
status = json['status'];
|
||||
statusCode = json['status_code'];
|
||||
message = json['message'];
|
||||
if (json['data'] != null) {
|
||||
data = <Data>[];
|
||||
json['data'].forEach((v) {
|
||||
data!.add(new Data.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['status'] = this.status;
|
||||
data['status_code'] = this.statusCode;
|
||||
data['message'] = this.message;
|
||||
if (this.data != null) {
|
||||
data['data'] = this.data!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Data {
|
||||
int? id;
|
||||
String? contentType;
|
||||
String? title;
|
||||
String? description;
|
||||
String? tags;
|
||||
String? file;
|
||||
int? categoryId;
|
||||
String? image;
|
||||
String? isActive;
|
||||
String? createdAt;
|
||||
|
||||
Data(
|
||||
{this.id,
|
||||
this.contentType,
|
||||
this.title,
|
||||
this.description,
|
||||
this.tags,
|
||||
this.file,
|
||||
this.categoryId,
|
||||
this.image,
|
||||
this.isActive,
|
||||
this.createdAt});
|
||||
|
||||
Data.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
contentType = json['content_type'];
|
||||
title = json['title'];
|
||||
description = json['description'];
|
||||
tags = json['tags'];
|
||||
file = json['file'];
|
||||
categoryId = json['category_id'];
|
||||
image = json['image'];
|
||||
isActive = json['is_active'];
|
||||
createdAt = json['created_at'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['content_type'] = this.contentType;
|
||||
data['title'] = this.title;
|
||||
data['description'] = this.description;
|
||||
data['tags'] = this.tags;
|
||||
data['file'] = this.file;
|
||||
data['category_id'] = this.categoryId;
|
||||
data['image'] = this.image;
|
||||
data['is_active'] = this.isActive;
|
||||
data['created_at'] = this.createdAt;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user