NestingLevelSuggestionState.fromJson constructor

NestingLevelSuggestionState.fromJson(
  1. Map json_
)

Implementation

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