toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'action': action,
  if (coordinates != null) 'coordinates': coordinates,
  if (text != null) 'text': text,
  if (key != null) 'key': key,
  if (scrollDirection != null) 'scroll_direction': scrollDirection,
  if (scrollAmount != null) 'scroll_amount': scrollAmount,
};