decode method

  1. @override
Gender decode(
  1. dynamic value
)

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);
  }
}