GoogleSearchIdeahubV1betaIdea.fromJson constructor

GoogleSearchIdeahubV1betaIdea.fromJson(
  1. Map _json
)

Implementation

GoogleSearchIdeahubV1betaIdea.fromJson(core.Map _json)
    : this(
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        text: _json.containsKey('text') ? _json['text'] as core.String : null,
        topics: _json.containsKey('topics')
            ? (_json['topics'] as core.List)
                .map<GoogleSearchIdeahubV1betaTopic>((value) =>
                    GoogleSearchIdeahubV1betaTopic.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );