toJson method
Implementation
@override
String? toJson(TextBaseline? object) {
if (object == null) return null;
switch (object) {
case TextBaseline.alphabetic:
return 'alphabetic';
case TextBaseline.ideographic:
return 'ideographic';
}
}