toStringValue static method
Converts a GiphyRendition or GiphyClipsRendition object to its string representation.
The rendition
parameter is the rendition object to be converted (either GiphyRendition or GiphyClipsRendition).
Throws an ArgumentError if the rendition type is not supported.
Implementation
static String toStringValue(dynamic rendition) {
if (rendition is GiphyRendition) {
return _toStringValue(rendition);
} else if (rendition is GiphyClipsRendition) {
return _clipsToStringValue(rendition);
} else {
throw ArgumentError('Unsupported rendition type');
}
}