toJson method

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

Implementation

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

  switch (value) {
    case Axis.horizontal:
      return 'horizontal';
      break;

    case Axis.vertical:
      return 'vertical';
      break;
  }

  throw 'Json_Unsuported_Value';
}