installationTypeToDto function
- InstallationType? installationType
Implementation
InstallationTypeDTO? installationTypeToDto(InstallationType? installationType) {
return switch (installationType) {
InstallationType.commercial => InstallationTypeDTO.commercial,
InstallationType.residential => InstallationTypeDTO.residential,
null => null,
};
}