parseContentRatingFromEnum static method

String parseContentRatingFromEnum(
  1. ContentRating rating
)

Implementation

static String parseContentRatingFromEnum(ContentRating rating) {
  switch (rating) {
    case ContentRating.erotica:
      return 'erotica';
    case ContentRating.pornographic:
      return 'pornographic';
    case ContentRating.safe:
      return 'safe';
    case ContentRating.suggestive:
      return 'suggestive';
  }
}