NamedStyleSuggestionState.fromJson constructor

NamedStyleSuggestionState.fromJson(
  1. Map json_
)

Implementation

NamedStyleSuggestionState.fromJson(core.Map json_)
    : this(
        namedStyleType: json_.containsKey('namedStyleType')
            ? json_['namedStyleType'] as core.String
            : null,
        paragraphStyleSuggestionState:
            json_.containsKey('paragraphStyleSuggestionState')
                ? ParagraphStyleSuggestionState.fromJson(
                    json_['paragraphStyleSuggestionState']
                        as core.Map<core.String, core.dynamic>)
                : null,
        textStyleSuggestionState:
            json_.containsKey('textStyleSuggestionState')
                ? TextStyleSuggestionState.fromJson(
                    json_['textStyleSuggestionState']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );