toStringValue static method

String toStringValue(
  1. GiphyRating rating
)

Converts a GiphyRating enum value to its corresponding string representation.

Example:

String value = GiphyRatingExtension.toStringValue(GiphyRating.pg13);

Implementation

static String toStringValue(GiphyRating rating) {
  return rating.toString().split('.').last;
}