toMap method
Implementation
Map<String, dynamic> toMap() {
return{
if (nit != null) 'nit': nit,
if (name != null) 'name': name,
if (address != null) 'address': address,
if (phone != null) 'phone': phone,
if (municipalityId != null) 'municipalityId': municipalityId,
if (email != null) 'email': email,
if (logo != null) 'logo': logo,
if (economicActivity != null) 'economicActivity': economicActivity,
if (legalRepresentative != null) 'legalRepresentative': legalRepresentative,
};
}