SuggestedTextStyle.fromJson constructor

SuggestedTextStyle.fromJson(
  1. Map json_
)

Implementation

SuggestedTextStyle.fromJson(core.Map json_)
  : this(
      textStyle:
          json_.containsKey('textStyle')
              ? TextStyle.fromJson(
                json_['textStyle'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      textStyleSuggestionState:
          json_.containsKey('textStyleSuggestionState')
              ? TextStyleSuggestionState.fromJson(
                json_['textStyleSuggestionState']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
    );