DocumentStyle.fromJson constructor

DocumentStyle.fromJson(
  1. Map json_
)

Implementation

DocumentStyle.fromJson(core.Map json_)
    : this(
        background: json_.containsKey('background')
            ? Background.fromJson(
                json_['background'] as core.Map<core.String, core.dynamic>)
            : null,
        defaultFooterId: json_.containsKey('defaultFooterId')
            ? json_['defaultFooterId'] as core.String
            : null,
        defaultHeaderId: json_.containsKey('defaultHeaderId')
            ? json_['defaultHeaderId'] as core.String
            : null,
        evenPageFooterId: json_.containsKey('evenPageFooterId')
            ? json_['evenPageFooterId'] as core.String
            : null,
        evenPageHeaderId: json_.containsKey('evenPageHeaderId')
            ? json_['evenPageHeaderId'] as core.String
            : null,
        firstPageFooterId: json_.containsKey('firstPageFooterId')
            ? json_['firstPageFooterId'] as core.String
            : null,
        firstPageHeaderId: json_.containsKey('firstPageHeaderId')
            ? json_['firstPageHeaderId'] as core.String
            : null,
        flipPageOrientation: json_.containsKey('flipPageOrientation')
            ? json_['flipPageOrientation'] as core.bool
            : null,
        marginBottom: json_.containsKey('marginBottom')
            ? Dimension.fromJson(
                json_['marginBottom'] as core.Map<core.String, core.dynamic>)
            : null,
        marginFooter: json_.containsKey('marginFooter')
            ? Dimension.fromJson(
                json_['marginFooter'] as core.Map<core.String, core.dynamic>)
            : null,
        marginHeader: json_.containsKey('marginHeader')
            ? Dimension.fromJson(
                json_['marginHeader'] as core.Map<core.String, core.dynamic>)
            : null,
        marginLeft: json_.containsKey('marginLeft')
            ? Dimension.fromJson(
                json_['marginLeft'] as core.Map<core.String, core.dynamic>)
            : null,
        marginRight: json_.containsKey('marginRight')
            ? Dimension.fromJson(
                json_['marginRight'] as core.Map<core.String, core.dynamic>)
            : null,
        marginTop: json_.containsKey('marginTop')
            ? Dimension.fromJson(
                json_['marginTop'] as core.Map<core.String, core.dynamic>)
            : null,
        pageNumberStart: json_.containsKey('pageNumberStart')
            ? json_['pageNumberStart'] as core.int
            : null,
        pageSize: json_.containsKey('pageSize')
            ? Size.fromJson(
                json_['pageSize'] as core.Map<core.String, core.dynamic>)
            : null,
        useCustomHeaderFooterMargins:
            json_.containsKey('useCustomHeaderFooterMargins')
                ? json_['useCustomHeaderFooterMargins'] as core.bool
                : null,
        useEvenPageHeaderFooter: json_.containsKey('useEvenPageHeaderFooter')
            ? json_['useEvenPageHeaderFooter'] as core.bool
            : null,
        useFirstPageHeaderFooter:
            json_.containsKey('useFirstPageHeaderFooter')
                ? json_['useFirstPageHeaderFooter'] as core.bool
                : null,
      );