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