fromStringValue static method
Converts a string value to a corresponding GiphyStickersColumnCount enum value.
Throws an ArgumentError if the given string does not match any GiphyStickersColumnCount values.
value
The string representation of the stickers column count.
Returns the matching GiphyStickersColumnCount value.
Implementation
static GiphyStickersColumnCount fromStringValue(String value) {
switch (value) {
case 'two':
return GiphyStickersColumnCount.two;
case 'three':
return GiphyStickersColumnCount.three;
case 'four':
return GiphyStickersColumnCount.four;
default:
throw ArgumentError('Unknown GiphyStickersColumnCount value: $value');
}
}