mirrored_repositories/wiki_art_app/lib/Api/src
enum Gender { MALE, FEMALE }

class EnumValues<T> {
  Map<String, T> map;
  Map<T, String> reverseMap;

  EnumValues(this.map);

  Map<T, String> get reverse {
    if (reverseMap == null) {
      reverseMap = map.map((k, v) => new MapEntry(v, k));
    }
    return reverseMap;
  }
}

final genderValues = EnumValues({"female": Gender.FEMALE, "male": Gender.MALE});
