VideoSuggestions.fromJson constructor

VideoSuggestions.fromJson(
  1. Map json_
)

Implementation

VideoSuggestions.fromJson(core.Map json_)
    : this(
        editorSuggestions: json_.containsKey('editorSuggestions')
            ? (json_['editorSuggestions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        processingErrors: json_.containsKey('processingErrors')
            ? (json_['processingErrors'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        processingHints: json_.containsKey('processingHints')
            ? (json_['processingHints'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        processingWarnings: json_.containsKey('processingWarnings')
            ? (json_['processingWarnings'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tagSuggestions: json_.containsKey('tagSuggestions')
            ? (json_['tagSuggestions'] as core.List)
                .map((value) => VideoSuggestionsTagSuggestion.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );