fromJson method

  1. @override
DragStartBehavior? fromJson(
  1. String? json
)
override

Implementation

@override
DragStartBehavior? fromJson(String? json) {
  if (json == null) return null;

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

    case 'start':
      return DragStartBehavior.start;
  }

  throw 'Unsuported_Json_Value';
}