explore unseen view more
This commit is contained in:
300
lib/model/ExploreUnseenModel/explore_unseen_model.dart
Normal file
300
lib/model/ExploreUnseenModel/explore_unseen_model.dart
Normal file
@@ -0,0 +1,300 @@
|
||||
class ExploreModel {
|
||||
String? status;
|
||||
int? statusCode;
|
||||
String? message;
|
||||
Data? data;
|
||||
|
||||
ExploreModel({this.status, this.statusCode, this.message, this.data});
|
||||
|
||||
ExploreModel.fromJson(Map<String, dynamic> json) {
|
||||
status = json['status'];
|
||||
statusCode = json['status_code'];
|
||||
message = json['message'];
|
||||
data = json['data'] != null ? new Data.fromJson(json['data']) : null;
|
||||
}
|
||||
|
||||
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!.toJson();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Data {
|
||||
List<ExploreTheUnseenActiveCalls>? exploreTheUnseenActiveCalls;
|
||||
List<ExploreTheUnseenExitedCalls>? exploreTheUnseenExitedCalls;
|
||||
|
||||
Data({this.exploreTheUnseenActiveCalls, this.exploreTheUnseenExitedCalls});
|
||||
|
||||
Data.fromJson(Map<String, dynamic> json) {
|
||||
if (json['explore_the_unseen_active_calls'] != null) {
|
||||
exploreTheUnseenActiveCalls = <ExploreTheUnseenActiveCalls>[];
|
||||
json['explore_the_unseen_active_calls'].forEach((v) {
|
||||
exploreTheUnseenActiveCalls!
|
||||
.add(new ExploreTheUnseenActiveCalls.fromJson(v));
|
||||
});
|
||||
}
|
||||
if (json['explore_the_unseen_exited_calls'] != null) {
|
||||
exploreTheUnseenExitedCalls = <ExploreTheUnseenExitedCalls>[];
|
||||
json['explore_the_unseen_exited_calls'].forEach((v) {
|
||||
exploreTheUnseenExitedCalls!
|
||||
.add(new ExploreTheUnseenExitedCalls.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
if (this.exploreTheUnseenActiveCalls != null) {
|
||||
data['explore_the_unseen_active_calls'] =
|
||||
this.exploreTheUnseenActiveCalls!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
if (this.exploreTheUnseenExitedCalls != null) {
|
||||
data['explore_the_unseen_exited_calls'] =
|
||||
this.exploreTheUnseenExitedCalls!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class ExploreTheUnseenActiveCalls {
|
||||
int? id;
|
||||
int? productTypeXid;
|
||||
int? recommendationActionsXid;
|
||||
String? stockName;
|
||||
String? instrumentKey;
|
||||
String? stockImage;
|
||||
String? qty;
|
||||
String? duration;
|
||||
String? currentPrice;
|
||||
String? buyPrice;
|
||||
String? targetPrice;
|
||||
String? stopLoss;
|
||||
int? isSendRecommendationNow;
|
||||
String? scheduleDateTime;
|
||||
String? createdAt;
|
||||
String? docs;
|
||||
ProductTypeData? productTypeData;
|
||||
ActionData? actionData;
|
||||
|
||||
ExploreTheUnseenActiveCalls(
|
||||
{this.id,
|
||||
this.productTypeXid,
|
||||
this.recommendationActionsXid,
|
||||
this.stockName,
|
||||
this.instrumentKey,
|
||||
this.stockImage,
|
||||
this.qty,
|
||||
this.duration,
|
||||
this.currentPrice,
|
||||
this.buyPrice,
|
||||
this.targetPrice,
|
||||
this.stopLoss,
|
||||
this.isSendRecommendationNow,
|
||||
this.scheduleDateTime,
|
||||
this.createdAt,
|
||||
this.docs,
|
||||
this.productTypeData,
|
||||
this.actionData});
|
||||
|
||||
ExploreTheUnseenActiveCalls.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
productTypeXid = json['product_type_xid'];
|
||||
recommendationActionsXid = json['recommendation_actions_xid'];
|
||||
stockName = json['stock_name'];
|
||||
instrumentKey = json['instrument_key'];
|
||||
stockImage = json['stock_image'];
|
||||
qty = json['qty'];
|
||||
duration = json['duration'];
|
||||
currentPrice = json['current_price'];
|
||||
buyPrice = json['buy_price'];
|
||||
targetPrice = json['target_price'];
|
||||
stopLoss = json['stop_loss'];
|
||||
isSendRecommendationNow = json['is_send_recommendation_now'];
|
||||
scheduleDateTime = json['schedule_date_time'];
|
||||
createdAt = json['created_at'];
|
||||
docs = json['docs'];
|
||||
productTypeData = json['product_type_data'] != null
|
||||
? new ProductTypeData.fromJson(json['product_type_data'])
|
||||
: null;
|
||||
actionData = json['action_data'] != null
|
||||
? new ActionData.fromJson(json['action_data'])
|
||||
: null;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['product_type_xid'] = this.productTypeXid;
|
||||
data['recommendation_actions_xid'] = this.recommendationActionsXid;
|
||||
data['stock_name'] = this.stockName;
|
||||
data['instrument_key'] = this.instrumentKey;
|
||||
data['stock_image'] = this.stockImage;
|
||||
data['qty'] = this.qty;
|
||||
data['duration'] = this.duration;
|
||||
data['current_price'] = this.currentPrice;
|
||||
data['buy_price'] = this.buyPrice;
|
||||
data['target_price'] = this.targetPrice;
|
||||
data['stop_loss'] = this.stopLoss;
|
||||
data['is_send_recommendation_now'] = this.isSendRecommendationNow;
|
||||
data['schedule_date_time'] = this.scheduleDateTime;
|
||||
data['created_at'] = this.createdAt;
|
||||
data['docs'] = this.docs;
|
||||
if (this.productTypeData != null) {
|
||||
data['product_type_data'] = this.productTypeData!.toJson();
|
||||
}
|
||||
if (this.actionData != null) {
|
||||
data['action_data'] = this.actionData!.toJson();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class ExploreTheUnseenExitedCalls {
|
||||
int? id;
|
||||
int? productTypeXid;
|
||||
int? recommendationActionsXid;
|
||||
String? stockName;
|
||||
String? instrumentKey;
|
||||
String? stockImage;
|
||||
String? qty;
|
||||
String? duration;
|
||||
String? currentPrice;
|
||||
String? buyPrice;
|
||||
String? targetPrice;
|
||||
String? stopLoss;
|
||||
int? isSendRecommendationNow;
|
||||
String? scheduleDateTime;
|
||||
String? createdAt;
|
||||
String? docs;
|
||||
ProductTypeData? productTypeData;
|
||||
ActionData? actionData;
|
||||
|
||||
ExploreTheUnseenExitedCalls(
|
||||
{this.id,
|
||||
this.productTypeXid,
|
||||
this.recommendationActionsXid,
|
||||
this.stockName,
|
||||
this.instrumentKey,
|
||||
this.stockImage,
|
||||
this.qty,
|
||||
this.duration,
|
||||
this.currentPrice,
|
||||
this.buyPrice,
|
||||
this.targetPrice,
|
||||
this.stopLoss,
|
||||
this.isSendRecommendationNow,
|
||||
this.scheduleDateTime,
|
||||
this.createdAt,
|
||||
this.docs,
|
||||
this.productTypeData,
|
||||
this.actionData});
|
||||
|
||||
ExploreTheUnseenExitedCalls.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
productTypeXid = json['product_type_xid'];
|
||||
recommendationActionsXid = json['recommendation_actions_xid'];
|
||||
stockName = json['stock_name'];
|
||||
instrumentKey = json['instrument_key'];
|
||||
stockImage = json['stock_image'];
|
||||
qty = json['qty'];
|
||||
duration = json['duration'];
|
||||
currentPrice = json['current_price'];
|
||||
buyPrice = json['buy_price'];
|
||||
targetPrice = json['target_price'];
|
||||
stopLoss = json['stop_loss'];
|
||||
isSendRecommendationNow = json['is_send_recommendation_now'];
|
||||
scheduleDateTime = json['schedule_date_time'];
|
||||
createdAt = json['created_at'];
|
||||
docs = json['docs'];
|
||||
productTypeData = json['product_type_data'] != null
|
||||
? new ProductTypeData.fromJson(json['product_type_data'])
|
||||
: null;
|
||||
actionData = json['action_data'] != null
|
||||
? new ActionData.fromJson(json['action_data'])
|
||||
: null;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['product_type_xid'] = this.productTypeXid;
|
||||
data['recommendation_actions_xid'] = this.recommendationActionsXid;
|
||||
data['stock_name'] = this.stockName;
|
||||
data['instrument_key'] = this.instrumentKey;
|
||||
data['stock_image'] = this.stockImage;
|
||||
data['qty'] = this.qty;
|
||||
data['duration'] = this.duration;
|
||||
data['current_price'] = this.currentPrice;
|
||||
data['buy_price'] = this.buyPrice;
|
||||
data['target_price'] = this.targetPrice;
|
||||
data['stop_loss'] = this.stopLoss;
|
||||
data['is_send_recommendation_now'] = this.isSendRecommendationNow;
|
||||
data['schedule_date_time'] = this.scheduleDateTime;
|
||||
data['created_at'] = this.createdAt;
|
||||
data['docs'] = this.docs;
|
||||
if (this.productTypeData != null) {
|
||||
data['product_type_data'] = this.productTypeData!.toJson();
|
||||
}
|
||||
if (this.actionData != null) {
|
||||
data['action_data'] = this.actionData!.toJson();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class ProductTypeData {
|
||||
int? id;
|
||||
String? title;
|
||||
String? isActive;
|
||||
Null? createdAt;
|
||||
|
||||
ProductTypeData({this.id, this.title, this.isActive, this.createdAt});
|
||||
|
||||
ProductTypeData.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
title = json['title'];
|
||||
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['title'] = this.title;
|
||||
data['is_active'] = this.isActive;
|
||||
data['created_at'] = this.createdAt;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class ActionData {
|
||||
int? id;
|
||||
String? name;
|
||||
int? isActive;
|
||||
Null? createdAt;
|
||||
|
||||
ActionData({this.id, this.name, this.isActive, this.createdAt});
|
||||
|
||||
ActionData.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
name = json['name'];
|
||||
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['name'] = this.name;
|
||||
data['is_active'] = this.isActive;
|
||||
data['created_at'] = this.createdAt;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -393,6 +393,7 @@ class ContentByteVideo {
|
||||
String? image;
|
||||
String? isActive;
|
||||
String? createdAt;
|
||||
String? link;
|
||||
|
||||
ContentByteVideo(
|
||||
{this.id,
|
||||
@@ -404,7 +405,8 @@ class ContentByteVideo {
|
||||
this.categoryId,
|
||||
this.image,
|
||||
this.isActive,
|
||||
this.createdAt});
|
||||
this.createdAt,
|
||||
this.link});
|
||||
|
||||
ContentByteVideo.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
@@ -417,6 +419,7 @@ class ContentByteVideo {
|
||||
image = json['image'];
|
||||
isActive = json['is_active'];
|
||||
createdAt = json['created_at'];
|
||||
link = json['link'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -431,6 +434,7 @@ class ContentByteVideo {
|
||||
data['image'] = this.image;
|
||||
data['is_active'] = this.isActive;
|
||||
data['created_at'] = this.createdAt;
|
||||
data['link'] = this.link;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user