toJson method

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

Implementation

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

  switch (object) {
    case TextWidthBasis.longestLine:
      return 'longestLine';
    case TextWidthBasis.parent:
      return 'parent';
  }
}