toJson method
Implementation
@override
String? toJson(TextOverflow? object) {
if (object == null) return null;
switch (object) {
case TextOverflow.clip:
return 'clip';
case TextOverflow.ellipsis:
return 'ellipsis';
case TextOverflow.fade:
return 'fade';
case TextOverflow.visible:
return 'visible';
}
}