FontStyle.fromJson constructor
FontStyle.fromJson(
- dynamic data
Implementation
FontStyle.fromJson(dynamic data) {
switch (data) {
case "Regular":
value = data;
break;
case "Bold":
value = data;
break;
case "Italic":
value = data;
break;
case "Underline":
value = data;
break;
case "Strikeout":
value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}