toJson method

Map<String, dynamic> toJson({
  1. ToJsonConfiguration? config,
})

Implementation

Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
  config = config ?? ToJsonConfiguration();
  Map<String, dynamic> obj = <String, dynamic>{};
  obj["enabled"] = enabled;
  obj["topBarTitle"] = topBarTitle.toJson(config: config);
  obj["topBarMoreButton"] = topBarMoreButton.toJson(config: config);
  obj["topBarBackButton"] = topBarBackButton.toJson(config: config);
  obj["morePopup"] = morePopup.toJson(config: config);
  obj["zoomButton"] = zoomButton.toJson(config: config);
  obj["zoomOverlay"] = zoomOverlay.toJson(config: config);
  obj["backgroundColor"] = backgroundColor.toString();
  obj["bottomBar"] = bottomBar.toJson(config: config);
  obj["switchNextPageButton"] = switchNextPageButton.toJson(config: config);
  obj["switchPreviousPageButton"] =
      switchPreviousPageButton.toJson(config: config);
  obj["pageCounter"] = pageCounter.toJson(config: config);
  obj["deleteAllPagesAlertDialog"] =
      deleteAllPagesAlertDialog.toJson(config: config);
  obj["deletePageAlertDialog"] = deletePageAlertDialog.toJson(config: config);
  return obj;
}