fromJson method
Implementation
@override
TextDecorationStyle? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'dashed':
return TextDecorationStyle.dashed;
case 'dotted':
return TextDecorationStyle.dotted;
case 'double':
return TextDecorationStyle.double;
case 'solid':
return TextDecorationStyle.solid;
case 'wavy':
return TextDecorationStyle.wavy;
}
throw 'Unsuported_Json_Value';
}