toJson method

  1. @override
String? toJson(
  1. TextBaseline? object
)
override

Implementation

@override
String? toJson(TextBaseline? object) {
  if (object == null) return null;

  switch (object) {
    case TextBaseline.alphabetic:
      return 'alphabetic';

    case TextBaseline.ideographic:
      return 'ideographic';
  }
}