toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    if (_validateString(name)) "name": name,
    if (_validateString(identificationTypeId)) "identificationTypeId": identificationTypeId,
    if (_validateString(identificationNumber)) "identificationNumber": identificationNumber,
    if (_validateString(dv)) "dv": dv,
    if (_validateString(responsabilityTypeId)) "responsabilityTypeId": responsabilityTypeId,
    if (_validateString(regimeTypeId)) "regimeTypeId": regimeTypeId,
    if (_validateString(organizationTypeId)) "organizationTypeId": organizationTypeId,
    if (_validateString(municipalityId)) "municipalityId": municipalityId,
    if (_validateString(address)) "address": address,
    if (_validateString(phone)) "phone": phone,
    if (_validateString(email)) "email": email,
    if (_validateString(state)) "state": state,
    if (_validateString(legalRepresentative)) "legalRepresentative": legalRepresentative,
    if (_validateString(merchantRegistry)) "merchantRegistry": merchantRegistry,
  };
}