FontMode.fromJson constructor
FontMode.fromJson(
- dynamic data
Creates a FontMode instance from a JSON representation.
Implementation
FontMode.fromJson(dynamic data) {
switch (data) {
case "Auto":
case "Manual":
_value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}