toAbstractFilterDto<T> method
AbstractFilterDto<T>
toAbstractFilterDto<T>()
Implementation
api.AbstractFilterDto<T> toAbstractFilterDto<T>() {
if (F == Coding || T == api.CodeDto) {
return (this as Filter<Coding>).toAbstractFilterCodeDto() as api.AbstractFilterDto<T>;
}
if (F == DataSample || T == api.ServiceDto) {
return (this as Filter<DataSample>).toAbstractFilterServiceDto() as api.AbstractFilterDto<T>;
}
if (F == MedicalDevice || T == api.DeviceDto) {
return (this as Filter<MedicalDevice>).toAbstractFilterDeviceDto() as api.AbstractFilterDto<T>;
}
if (F == HealthcareProfessional || T == api.HealthcarePartyDto) {
return (this as Filter<HealthcareProfessional>).toAbstractFilterHealthcarePartyDto() as api.AbstractFilterDto<T>;
}
if (F == HealthcareElement || T == api.HealthElementDto) {
return (this as Filter<HealthcareElement>).toAbstractFilterHealthElementDto() as api.AbstractFilterDto<T>;
}
if (F == Patient || T == api.PatientDto) {
return (this as Filter<Patient>).toAbstractFilterPatientDto() as api.AbstractFilterDto<T>;
}
if (F == User || T == api.UserDto) {
return (this as Filter<User>).toAbstractFilterUserDto() as api.AbstractFilterDto<T>;
}
throw FormatException("No mapper for ${F} -> ${T}");
}