decode method
Implementation
@override
Gender decode(dynamic value) {
switch (value) {
case "MALE":
return Gender.male;
case "FEMALE":
return Gender.female;
case "OTHER":
return Gender.other;
default:
throw MapperException.unknownEnumValue(value);
}
}