toJson method

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

Implementation

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

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

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