toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  if (fit != null) map['fit'] = fit!.name;
  if (scrollMode != null) map['scrollMode'] = scrollMode!.name;
  if (pageLayout != null) map['pageLayout'] = pageLayout!.name;
  if (offsetFirstPage != null) map['offsetFirstPage'] = offsetFirstPage;
  if (disableDoubleTapZoom != null) {
    map['disableDoubleTapZoom'] = disableDoubleTapZoom;
  }
  if (disableTextSelection != null) {
    map['disableTextSelection'] = disableTextSelection;
  }
  if (disableDragGestures != null) {
    map['disableDragGestures'] = disableDragGestures;
  }
  if (disableDoubleTapTextSelection != null) {
    map['disableDoubleTapTextSelection'] = disableDoubleTapTextSelection;
  }
  if (enableEdgeTapNavigation != null) {
    map['enableEdgeTapNavigation'] = enableEdgeTapNavigation;
  }
  if (enableSwipeNavigation != null) {
    map['enableSwipeNavigation'] = enableSwipeNavigation;
  }
  if (edgeTapAreaPoints != null) {
    map['edgeTapAreaPoints'] = edgeTapAreaPoints;
  }
  return map;
}