toJson method
Implementation
@override
String? toJson(TextWidthBasis? object) {
if (object == null) return null;
switch (object) {
case TextWidthBasis.longestLine:
return 'longestLine';
case TextWidthBasis.parent:
return 'parent';
}
}