SectionStyle.fromJson constructor

SectionStyle.fromJson(
  1. Map json_
)

Implementation

SectionStyle.fromJson(core.Map json_)
  : this(
      columnProperties: (json_['columnProperties'] as core.List?)
          ?.map(
            (value) => SectionColumnProperties.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      columnSeparatorStyle: json_['columnSeparatorStyle'] as core.String?,
      contentDirection: json_['contentDirection'] as core.String?,
      defaultFooterId: json_['defaultFooterId'] as core.String?,
      defaultHeaderId: json_['defaultHeaderId'] as core.String?,
      evenPageFooterId: json_['evenPageFooterId'] as core.String?,
      evenPageHeaderId: json_['evenPageHeaderId'] as core.String?,
      firstPageFooterId: json_['firstPageFooterId'] as core.String?,
      firstPageHeaderId: json_['firstPageHeaderId'] as core.String?,
      flipPageOrientation: json_['flipPageOrientation'] as core.bool?,
      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_['pageNumberStart'] as core.int?,
      sectionType: json_['sectionType'] as core.String?,
      useFirstPageHeaderFooter:
          json_['useFirstPageHeaderFooter'] as core.bool?,
    );