TextStyleSuggestionState.fromJson constructor

TextStyleSuggestionState.fromJson(
  1. Map json_
)

Implementation

TextStyleSuggestionState.fromJson(core.Map json_)
    : this(
        backgroundColorSuggested:
            json_.containsKey('backgroundColorSuggested')
                ? json_['backgroundColorSuggested'] as core.bool
                : null,
        baselineOffsetSuggested: json_.containsKey('baselineOffsetSuggested')
            ? json_['baselineOffsetSuggested'] as core.bool
            : null,
        boldSuggested: json_.containsKey('boldSuggested')
            ? json_['boldSuggested'] as core.bool
            : null,
        fontSizeSuggested: json_.containsKey('fontSizeSuggested')
            ? json_['fontSizeSuggested'] as core.bool
            : null,
        foregroundColorSuggested:
            json_.containsKey('foregroundColorSuggested')
                ? json_['foregroundColorSuggested'] as core.bool
                : null,
        italicSuggested: json_.containsKey('italicSuggested')
            ? json_['italicSuggested'] as core.bool
            : null,
        linkSuggested: json_.containsKey('linkSuggested')
            ? json_['linkSuggested'] as core.bool
            : null,
        smallCapsSuggested: json_.containsKey('smallCapsSuggested')
            ? json_['smallCapsSuggested'] as core.bool
            : null,
        strikethroughSuggested: json_.containsKey('strikethroughSuggested')
            ? json_['strikethroughSuggested'] as core.bool
            : null,
        underlineSuggested: json_.containsKey('underlineSuggested')
            ? json_['underlineSuggested'] as core.bool
            : null,
        weightedFontFamilySuggested:
            json_.containsKey('weightedFontFamilySuggested')
                ? json_['weightedFontFamilySuggested'] as core.bool
                : null,
      );