decode static method
Implementation
static JustifyContent? decode(dynamic json) {
if (json == null) {
return null;
}
if (json is! String) {
return null;
}
switch (json) {
case 'START':
return JustifyContent.START;
case 'CENTER':
return JustifyContent.CENTER;
case 'END':
return JustifyContent.END;
case 'SPACE_BETWEEN':
return JustifyContent.SPACE_BETWEEN;
default:
return JustifyContent.UNKNOWN;
}
}