GoogleCloudDialogflowV2EntityType.fromJson constructor

GoogleCloudDialogflowV2EntityType.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2EntityType.fromJson(core.Map json_)
    : this(
        autoExpansionMode: json_.containsKey('autoExpansionMode')
            ? json_['autoExpansionMode'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        enableFuzzyExtraction: json_.containsKey('enableFuzzyExtraction')
            ? json_['enableFuzzyExtraction'] as core.bool
            : null,
        entities: json_.containsKey('entities')
            ? (json_['entities'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2EntityTypeEntity.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );