class crmProspectDetailsAddLeadsResponse { List? employees; List? products; List? status; String? error; String? message; crmProspectDetailsAddLeadsResponse( {this.employees, this.products, this.status, this.error, this.message}); crmProspectDetailsAddLeadsResponse.fromJson(Map json) { if (json['employees'] != null) { employees = []; json['employees'].forEach((v) { employees!.add(new LeadEmployees.fromJson(v)); }); } if (json['products'] != null) { products = []; json['products'].forEach((v) { products!.add(new Products.fromJson(v)); }); } status = json['status'].cast(); error = json['error']; message = json['message']; } Map toJson() { final Map data = new Map(); if (this.employees != null) { data['employees'] = this.employees!.map((v) => v.toJson()).toList(); } if (this.products != null) { data['products'] = this.products!.map((v) => v.toJson()).toList(); } data['status'] = this.status; data['error'] = this.error; data['message'] = this.message; return data; } } class LeadEmployees { String? id; String? name; LeadEmployees({this.id, this.name}); LeadEmployees.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 Products { String? id; String? name; Products({this.id, this.name}); Products.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; } }