ParagraphStyleSuggestionState.fromJson constructor

ParagraphStyleSuggestionState.fromJson(
  1. Map json_
)

Implementation

ParagraphStyleSuggestionState.fromJson(core.Map json_)
    : this(
        alignmentSuggested: json_.containsKey('alignmentSuggested')
            ? json_['alignmentSuggested'] as core.bool
            : null,
        avoidWidowAndOrphanSuggested:
            json_.containsKey('avoidWidowAndOrphanSuggested')
                ? json_['avoidWidowAndOrphanSuggested'] as core.bool
                : null,
        borderBetweenSuggested: json_.containsKey('borderBetweenSuggested')
            ? json_['borderBetweenSuggested'] as core.bool
            : null,
        borderBottomSuggested: json_.containsKey('borderBottomSuggested')
            ? json_['borderBottomSuggested'] as core.bool
            : null,
        borderLeftSuggested: json_.containsKey('borderLeftSuggested')
            ? json_['borderLeftSuggested'] as core.bool
            : null,
        borderRightSuggested: json_.containsKey('borderRightSuggested')
            ? json_['borderRightSuggested'] as core.bool
            : null,
        borderTopSuggested: json_.containsKey('borderTopSuggested')
            ? json_['borderTopSuggested'] as core.bool
            : null,
        directionSuggested: json_.containsKey('directionSuggested')
            ? json_['directionSuggested'] as core.bool
            : null,
        headingIdSuggested: json_.containsKey('headingIdSuggested')
            ? json_['headingIdSuggested'] as core.bool
            : null,
        indentEndSuggested: json_.containsKey('indentEndSuggested')
            ? json_['indentEndSuggested'] as core.bool
            : null,
        indentFirstLineSuggested:
            json_.containsKey('indentFirstLineSuggested')
                ? json_['indentFirstLineSuggested'] as core.bool
                : null,
        indentStartSuggested: json_.containsKey('indentStartSuggested')
            ? json_['indentStartSuggested'] as core.bool
            : null,
        keepLinesTogetherSuggested:
            json_.containsKey('keepLinesTogetherSuggested')
                ? json_['keepLinesTogetherSuggested'] as core.bool
                : null,
        keepWithNextSuggested: json_.containsKey('keepWithNextSuggested')
            ? json_['keepWithNextSuggested'] as core.bool
            : null,
        lineSpacingSuggested: json_.containsKey('lineSpacingSuggested')
            ? json_['lineSpacingSuggested'] as core.bool
            : null,
        namedStyleTypeSuggested: json_.containsKey('namedStyleTypeSuggested')
            ? json_['namedStyleTypeSuggested'] as core.bool
            : null,
        pageBreakBeforeSuggested:
            json_.containsKey('pageBreakBeforeSuggested')
                ? json_['pageBreakBeforeSuggested'] as core.bool
                : null,
        shadingSuggestionState: json_.containsKey('shadingSuggestionState')
            ? ShadingSuggestionState.fromJson(json_['shadingSuggestionState']
                as core.Map<core.String, core.dynamic>)
            : null,
        spaceAboveSuggested: json_.containsKey('spaceAboveSuggested')
            ? json_['spaceAboveSuggested'] as core.bool
            : null,
        spaceBelowSuggested: json_.containsKey('spaceBelowSuggested')
            ? json_['spaceBelowSuggested'] as core.bool
            : null,
        spacingModeSuggested: json_.containsKey('spacingModeSuggested')
            ? json_['spacingModeSuggested'] as core.bool
            : null,
      );