decode static method

Overflow? decode(
  1. dynamic json
)

Implementation

static Overflow? decode(dynamic json) {
  if (json == null) {
    return null;
  }
  if (json is! String) {
    return null;
  }

  switch (json) {
    case 'VISIBLE':
      return Overflow.VISIBLE;
    case 'HIDDEN':
      return Overflow.HIDDEN;
    case 'SCROLL':
      return Overflow.SCROLL;
    default:
      return Overflow.UNKNOWN;
  }
}