installationTypeToDto function

InstallationTypeDTO? installationTypeToDto(
  1. InstallationType? installationType
)

Implementation

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