GoogleCloudDialogflowCxV3Generator.fromJson constructor

GoogleCloudDialogflowCxV3Generator.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3Generator.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        placeholders: json_.containsKey('placeholders')
            ? (json_['placeholders'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3GeneratorPlaceholder.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        promptText: json_.containsKey('promptText')
            ? GoogleCloudDialogflowCxV3Phrase.fromJson(
                json_['promptText'] as core.Map<core.String, core.dynamic>)
            : null,
      );