KonectarApp/lib/model/eventsdetailmodel.dart

250 lines
6.6 KiB
Dart
Raw Permalink Normal View History

2024-09-06 06:30:31 +00:00
class EventsDetailResp {
EventsDetailData? data;
EventsDetailResp({this.data});
EventsDetailResp.fromJson(Map<String, dynamic> json) {
if (json["data"] is Map) {
data =
json["data"] == null ? null : EventsDetailData.fromJson(json["data"]);
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> _data = <String, dynamic>{};
if (data != null) {
_data["data"] = data?.toJson();
}
return _data;
}
}
class EventsDetailData {
List<Eventsdetail>? eventsdetail;
EventsDetailData({this.eventsdetail});
EventsDetailData.fromJson(Map<String, dynamic> json) {
if (json["eventsdetail"] is List) {
eventsdetail = json["eventsdetail"] == null
? null
: (json["eventsdetail"] as List)
.map((e) => Eventsdetail.fromJson(e))
.toList();
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> _data = <String, dynamic>{};
if (eventsdetail != null) {
_data["eventsdetail"] = eventsdetail?.map((e) => e.toJson()).toList();
}
return _data;
}
}
class Eventsdetail {
String? city;
String? country;
String? region;
String? cntMedicalInsight;
String? cntNotes;
String? eid;
String? eventAttendeesId;
String? eventTopics;
String? eventsSession;
String? eventsTopic;
String? firstName;
String? hcpPinAlias;
String? id;
String? kolFullName;
String? kolId;
String? kolName;
String? lastName;
String? medicalInsightId;
String? middleName;
String? name;
String? npiNum;
String? numSess;
String? optInOutStatus;
String? orgName;
int? projKolId;
String? restEventsSession;
int? restEventsSessionCount;
String? restEventsTopic;
int? restEventsTopicCount;
String? sessionName;
String? sessionNote;
String? url1;
Eventsdetail(
{this.city,
this.country,
this.region,
this.cntMedicalInsight,
this.cntNotes,
this.eid,
this.eventAttendeesId,
this.eventTopics,
this.eventsSession,
this.eventsTopic,
this.firstName,
this.hcpPinAlias,
this.id,
this.kolFullName,
this.kolId,
this.kolName,
this.lastName,
this.medicalInsightId,
this.middleName,
this.name,
this.npiNum,
this.numSess,
this.optInOutStatus,
this.orgName,
this.projKolId,
this.restEventsSession,
this.restEventsSessionCount,
this.restEventsTopic,
this.restEventsTopicCount,
this.sessionName,
this.sessionNote,
this.url1});
Eventsdetail.fromJson(Map<String, dynamic> json) {
if (json["city"] is String) {
city = json["city"];
}
if (json["country"] is String) {
country = json["country"];
}
if (json["region"] is String) {
region = json["region"];
}
if (json["cnt_medical_insight"] is String) {
cntMedicalInsight = json["cnt_medical_insight"];
}
if (json["cnt_notes"] is String) {
cntNotes = json["cnt_notes"];
}
if (json["eid"] is String) {
eid = json["eid"];
}
if (json["event_attendees_id"] is String) {
eventAttendeesId = json["event_attendees_id"];
}
if (json["event_topics"] is String) {
eventTopics = json["event_topics"];
}
if (json["events_session"] is String) {
eventsSession = json["events_session"];
}
if (json["events_topic"] is String) {
eventsTopic = json["events_topic"];
}
if (json["first_name"] is String) {
firstName = json["first_name"];
}
if (json["hcp_pin_alias"] is String) {
hcpPinAlias = json["hcp_pin_alias"];
}
if (json["id"] is String) {
id = json["id"];
}
if (json["kol_full_name"] is String) {
kolFullName = json["kol_full_name"];
}
if (json["kol_id"] is String) {
kolId = json["kol_id"];
}
if (json["kol_name"] is String) {
kolName = json["kol_name"];
}
if (json["last_name"] is String) {
lastName = json["last_name"];
}
if (json["medical_insight_id"] is String) {
medicalInsightId = json["medical_insight_id"];
}
if (json["middle_name"] is String) {
middleName = json["middle_name"];
}
if (json["name"] is String) {
name = json["name"];
}
if (json["npi_num"] is String) {
npiNum = json["npi_num"];
}
if (json["num_sess"] is String) {
numSess = json["num_sess"];
}
if (json["opt_in_out_status"] is String) {
optInOutStatus = json["opt_in_out_status"];
}
if (json["org_name"] is String) {
orgName = json["org_name"];
}
if (json["proj_kol_id"] is int) {
projKolId = json["proj_kol_id"];
}
if (json["rest_events_session"] is String) {
restEventsSession = json["rest_events_session"];
}
if (json["rest_events_session_count"] is int) {
restEventsSessionCount = json["rest_events_session_count"];
}
if (json["rest_events_topic"] is String) {
restEventsTopic = json["rest_events_topic"];
}
if (json["rest_events_topic_count"] is int) {
restEventsTopicCount = json["rest_events_topic_count"];
}
if (json["session_name"] is String) {
sessionName = json["session_name"];
}
if (json["session_note"] is String) {
sessionNote = json["session_note"];
}
if (json["url1"] is String) {
url1 = json["url1"];
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> _data = <String, dynamic>{};
_data["city"] = city;
_data["country"] = country;
_data["region"] = region;
_data["cnt_medical_insight"] = cntMedicalInsight;
_data["cnt_notes"] = cntNotes;
_data["eid"] = eid;
_data["event_attendees_id"] = eventAttendeesId;
_data["event_topics"] = eventTopics;
_data["events_session"] = eventsSession;
_data["events_topic"] = eventsTopic;
_data["first_name"] = firstName;
_data["hcp_pin_alias"] = hcpPinAlias;
_data["id"] = id;
_data["kol_full_name"] = kolFullName;
_data["kol_id"] = kolId;
_data["kol_name"] = kolName;
_data["last_name"] = lastName;
_data["medical_insight_id"] = medicalInsightId;
_data["middle_name"] = middleName;
_data["name"] = name;
_data["npi_num"] = npiNum;
_data["num_sess"] = numSess;
_data["opt_in_out_status"] = optInOutStatus;
_data["org_name"] = orgName;
_data["proj_kol_id"] = projKolId;
_data["rest_events_session"] = restEventsSession;
_data["rest_events_session_count"] = restEventsSessionCount;
_data["rest_events_topic"] = restEventsTopic;
_data["rest_events_topic_count"] = restEventsTopicCount;
_data["session_name"] = sessionName;
_data["session_note"] = sessionNote;
_data["url1"] = url1;
return _data;
}
}