SuggestedNamedStyles.fromJson constructor

SuggestedNamedStyles.fromJson(
  1. Map json_
)

Implementation

SuggestedNamedStyles.fromJson(core.Map json_)
    : this(
        namedStyles: json_.containsKey('namedStyles')
            ? NamedStyles.fromJson(
                json_['namedStyles'] as core.Map<core.String, core.dynamic>)
            : null,
        namedStylesSuggestionState:
            json_.containsKey('namedStylesSuggestionState')
                ? NamedStylesSuggestionState.fromJson(
                    json_['namedStylesSuggestionState']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );