NestingLevelSuggestionState.fromJson constructor

NestingLevelSuggestionState.fromJson(
  1. Map json_
)

Implementation

NestingLevelSuggestionState.fromJson(core.Map json_)
    : this(
        bulletAlignmentSuggested:
            json_.containsKey('bulletAlignmentSuggested')
                ? json_['bulletAlignmentSuggested'] as core.bool
                : null,
        glyphFormatSuggested: json_.containsKey('glyphFormatSuggested')
            ? json_['glyphFormatSuggested'] as core.bool
            : null,
        glyphSymbolSuggested: json_.containsKey('glyphSymbolSuggested')
            ? json_['glyphSymbolSuggested'] as core.bool
            : null,
        glyphTypeSuggested: json_.containsKey('glyphTypeSuggested')
            ? json_['glyphTypeSuggested'] as core.bool
            : null,
        indentFirstLineSuggested:
            json_.containsKey('indentFirstLineSuggested')
                ? json_['indentFirstLineSuggested'] as core.bool
                : null,
        indentStartSuggested: json_.containsKey('indentStartSuggested')
            ? json_['indentStartSuggested'] as core.bool
            : null,
        startNumberSuggested: json_.containsKey('startNumberSuggested')
            ? json_['startNumberSuggested'] as core.bool
            : null,
        textStyleSuggestionState:
            json_.containsKey('textStyleSuggestionState')
                ? TextStyleSuggestionState.fromJson(
                    json_['textStyleSuggestionState']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );