fromJson method
Implementation
@override
TextDecoration? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'lineThrough':
return TextDecoration.lineThrough;
case 'none':
return TextDecoration.none;
case 'overline':
return TextDecoration.overline;
case 'underline':
return TextDecoration.underline;
}
throw 'Unsuported_Json_Value';
}