parsePublicDemographicFromEnum static method

String parsePublicDemographicFromEnum(
  1. PublicDemographic demographic
)

Implementation

static String parsePublicDemographicFromEnum(PublicDemographic demographic) {
  switch (demographic) {
    case PublicDemographic.josei:
      return 'josei';
    case PublicDemographic.none:
      return 'none';
    case PublicDemographic.seinen:
      return 'seinen';
    case PublicDemographic.shoujo:
      return 'shoujo';
    case PublicDemographic.shounen:
      return 'shounen';
  }
}