class crmNewLeadsProspectsViewResponse { List? employees; List? sources; List? teams; List? states; List? products; List? salutation; String? error; String? message; int? sessionExists; crmNewLeadsProspectsViewResponse({ this.employees, this.sources, this.teams, this.states, this.products, this.salutation, this.error, this.message, this.sessionExists, }); crmNewLeadsProspectsViewResponse.fromJson(Map json) { if (json['employees'] != null) { employees = []; json['employees'].forEach((v) { employees!.add(Employees.fromJson(v)); }); } if (json['sources'] != null) { sources = []; json['sources'].forEach((v) { sources!.add(Sources.fromJson(v)); }); } if (json['teams'] != null) { teams = []; json['teams'].forEach((v) { teams!.add(Teams.fromJson(v)); }); } if (json['states'] != null) { states = []; json['states'].forEach((v) { states!.add(States.fromJson(v)); }); } if (json['products'] != null) { products = []; json['products'].forEach((v) { products!.add(Products.fromJson(v)); }); } salutation = json['salutation'].cast(); error = json['error']; message = json['message']; sessionExists = json['session_exists']; } Map toJson() { final Map data = {}; if (employees != null) { data['employees'] = employees!.map((v) => v.toJson()).toList(); } if (sources != null) { data['sources'] = sources!.map((v) => v.toJson()).toList(); } if (teams != null) { data['teams'] = teams!.map((v) => v.toJson()).toList(); } if (states != null) { data['states'] = states!.map((v) => v.toJson()).toList(); } if (products != null) { data['products'] = products!.map((v) => v.toJson()).toList(); } data['salutation'] = salutation; data['error'] = error; data['message'] = message; data['session_exists'] = sessionExists; return data; } } class Employees { String? id; String? name; Employees({this.id, this.name}); Employees.fromJson(Map json) { id = json['id']; name = json['name']; } Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; return data; } } class Sources { String? id; String? name; Sources({this.id, this.name}); Sources.fromJson(Map json) { id = json['id']; name = json['name']; } Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; return data; } } class Teams { String? id; String? name; Teams({this.id, this.name}); Teams.fromJson(Map json) { id = json['id']; name = json['name']; } Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; return data; } } class States { String? id; String? name; States({this.id, this.name}); States.fromJson(Map json) { id = json['id']; name = json['name']; } Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; return data; } } class Products { String? id; String? name; String? remarks; Products({this.id, this.name}); Products.fromJson(Map json) { id = json['id']; name = json['name']; remarks = json['remarks']; } Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; data['remarks']; return data; } }