toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (background != null) 'background': background!,
      if (defaultFooterId != null) 'defaultFooterId': defaultFooterId!,
      if (defaultHeaderId != null) 'defaultHeaderId': defaultHeaderId!,
      if (evenPageFooterId != null) 'evenPageFooterId': evenPageFooterId!,
      if (evenPageHeaderId != null) 'evenPageHeaderId': evenPageHeaderId!,
      if (firstPageFooterId != null) 'firstPageFooterId': firstPageFooterId!,
      if (firstPageHeaderId != null) 'firstPageHeaderId': firstPageHeaderId!,
      if (flipPageOrientation != null)
        'flipPageOrientation': flipPageOrientation!,
      if (marginBottom != null) 'marginBottom': marginBottom!,
      if (marginFooter != null) 'marginFooter': marginFooter!,
      if (marginHeader != null) 'marginHeader': marginHeader!,
      if (marginLeft != null) 'marginLeft': marginLeft!,
      if (marginRight != null) 'marginRight': marginRight!,
      if (marginTop != null) 'marginTop': marginTop!,
      if (pageNumberStart != null) 'pageNumberStart': pageNumberStart!,
      if (pageSize != null) 'pageSize': pageSize!,
      if (useCustomHeaderFooterMargins != null)
        'useCustomHeaderFooterMargins': useCustomHeaderFooterMargins!,
      if (useEvenPageHeaderFooter != null)
        'useEvenPageHeaderFooter': useEvenPageHeaderFooter!,
      if (useFirstPageHeaderFooter != null)
        'useFirstPageHeaderFooter': useFirstPageHeaderFooter!,
    };