fromStringValue static method

GiphyStickersColumnCount fromStringValue(
  1. String 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');
  }
}