GoogleCloudContentwarehouseV1SynonymSet.fromJson constructor

GoogleCloudContentwarehouseV1SynonymSet.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContentwarehouseV1SynonymSet.fromJson(core.Map json_)
    : this(
        context: json_.containsKey('context')
            ? json_['context'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        synonyms: json_.containsKey('synonyms')
            ? (json_['synonyms'] as core.List)
                .map((value) =>
                    GoogleCloudContentwarehouseV1SynonymSetSynonym.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );