NamedStyleSuggestionState.fromJson constructor

NamedStyleSuggestionState.fromJson(
  1. Map json_
)

Implementation

NamedStyleSuggestionState.fromJson(core.Map json_)
  : this(
      namedStyleType: json_['namedStyleType'] as core.String?,
      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,
    );