convertValueToJson static method

String? convertValueToJson(
  1. Alignment? value
)

Implementation

static String? convertValueToJson(final Alignment? value) {
  String? result;
  if (value == Alignment.topCenter) result = 'tC';
  if (value == Alignment.topRight) result = 'tR';
  if (value == Alignment.centerLeft) result = 'cL';
  if (value == Alignment.center) result = 'c';
  if (value == Alignment.centerRight) result = 'cR';
  if (value == Alignment.bottomLeft) result = 'bL';
  if (value == Alignment.bottomCenter) result = 'bC';
  if (value == Alignment.bottomRight) result = 'bR';
  return result;
}