convertToValue method
Implementation
String convertToValue() {
String method = this;
if (method == "Any") {
return '';
} else if (method == "Male") {
return 'male';
} else if (method == "Female") {
return 'female';
} else if (method == "Non Binary") {
return 'non_binary';
} else if (method == "Below 18 year") {
return '0_18';
} else if (method == "18-24 year") {
return '18_24';
} else if (method == "24-40 year") {
return '24_40';
} else if (method == "40+ year") {
return '40_100';
} else if (method == "Single") {
return 'single';
} else if (method == "Taken") {
return 'taken';
}
return this;
}