ImagePropertiesSuggestionState.fromJson constructor

ImagePropertiesSuggestionState.fromJson(
  1. Map json_
)

Implementation

ImagePropertiesSuggestionState.fromJson(core.Map json_)
    : this(
        angleSuggested: json_.containsKey('angleSuggested')
            ? json_['angleSuggested'] as core.bool
            : null,
        brightnessSuggested: json_.containsKey('brightnessSuggested')
            ? json_['brightnessSuggested'] as core.bool
            : null,
        contentUriSuggested: json_.containsKey('contentUriSuggested')
            ? json_['contentUriSuggested'] as core.bool
            : null,
        contrastSuggested: json_.containsKey('contrastSuggested')
            ? json_['contrastSuggested'] as core.bool
            : null,
        cropPropertiesSuggestionState:
            json_.containsKey('cropPropertiesSuggestionState')
                ? CropPropertiesSuggestionState.fromJson(
                    json_['cropPropertiesSuggestionState']
                        as core.Map<core.String, core.dynamic>)
                : null,
        sourceUriSuggested: json_.containsKey('sourceUriSuggested')
            ? json_['sourceUriSuggested'] as core.bool
            : null,
        transparencySuggested: json_.containsKey('transparencySuggested')
            ? json_['transparencySuggested'] as core.bool
            : null,
      );