fromStringValue static method
Converts a string value to a corresponding GiphyIndicatorStyle enum value.
Throws an ArgumentError if the given string does not match any GiphyIndicatorStyle values.
value
The string representation of the indicator style.
Returns the matching GiphyIndicatorStyle value.
Implementation
static GiphyIndicatorStyle fromStringValue(String value) {
switch (value) {
case 'defaultStyle':
return GiphyIndicatorStyle.defaultStyle;
case 'dark':
return GiphyIndicatorStyle.dark;
case 'light':
return GiphyIndicatorStyle.light;
default:
throw ArgumentError('Unknown IndicatorStyle value: $value');
}
}