GoogleCloudDialogflowCxV3Intent.fromJson constructor

GoogleCloudDialogflowCxV3Intent.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3Intent.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        isFallback: json_.containsKey('isFallback')
            ? json_['isFallback'] as core.bool
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3IntentParameter.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.int
            : null,
        trainingPhrases: json_.containsKey('trainingPhrases')
            ? (json_['trainingPhrases'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3IntentTrainingPhrase.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );