toJson method

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

Implementation

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

  switch (object) {
    case DragStartBehavior.down:
      return 'down';

    case DragStartBehavior.start:
      return 'start';
  }
}