toJson$Enum$VoteItemTypeEnum function

String toJson$Enum$VoteItemTypeEnum(
  1. Enum$VoteItemTypeEnum e
)

Implementation

String toJson$Enum$VoteItemTypeEnum(Enum$VoteItemTypeEnum e) {
  switch (e) {
    case Enum$VoteItemTypeEnum.election:
      return r'election';
    case Enum$VoteItemTypeEnum.referendum:
      return r'referendum';
    case Enum$VoteItemTypeEnum.$unknown:
      return r'$unknown';
  }
}