class LeadListViewResponse { List? sources; List? teams; List? states; List? employees; LeadListViewResponse({this.sources, this.teams, this.states, this.employees}); LeadListViewResponse.fromJson(Map json) { if (json['sources'] != null) { sources = []; json['sources'].forEach((v) { sources!.add(new Sources.fromJson(v)); }); } if (json['teams'] != null) { teams = []; json['teams'].forEach((v) { teams!.add(new Teams.fromJson(v)); }); } if (json['states'] != null) { states = []; json['states'].forEach((v) { states!.add(new States.fromJson(v)); }); } if (json['employees'] != null) { employees = []; json['employees'].forEach((v) { employees!.add(new Employees.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); if (this.sources != null) { data['sources'] = this.sources!.map((v) => v.toJson()).toList(); } if (this.teams != null) { data['teams'] = this.teams!.map((v) => v.toJson()).toList(); } if (this.states != null) { data['states'] = this.states!.map((v) => v.toJson()).toList(); } if (this.employees != null) { data['employees'] = this.employees!.map((v) => v.toJson()).toList(); } 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 = new Map(); data['id'] = this.id; data['name'] = this.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 = new Map(); data['id'] = this.id; data['name'] = this.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 = new Map(); data['id'] = this.id; data['name'] = this.name; 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 = new Map(); data['id'] = this.id; data['name'] = this.name; return data; } }