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