toJson method

  1. @override
String? toJson(
  1. TextAlignVertical? value
)
override

Implementation

@override
String? toJson(TextAlignVertical? value) {
  if (value == null) return null;

  switch (value) {
    case TextAlignVertical.bottom:
      return 'bottom';
      break;
    case TextAlignVertical.center:
      return 'center';
      break;
    case TextAlignVertical.top:
      return 'top';
      break;
  }

  throw 'Json_Unsuported_Value';
}