decode static method
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;
}
}