GoogleCloudDialogflowV2IntentParameter.fromJson constructor

GoogleCloudDialogflowV2IntentParameter.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2IntentParameter.fromJson(core.Map json_)
    : this(
        defaultValue: json_.containsKey('defaultValue')
            ? json_['defaultValue'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        entityTypeDisplayName: json_.containsKey('entityTypeDisplayName')
            ? json_['entityTypeDisplayName'] as core.String
            : null,
        isList:
            json_.containsKey('isList') ? json_['isList'] as core.bool : null,
        mandatory: json_.containsKey('mandatory')
            ? json_['mandatory'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        prompts: json_.containsKey('prompts')
            ? (json_['prompts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        value:
            json_.containsKey('value') ? json_['value'] as core.String : null,
      );