GoogleCloudDialogflowV2Intent.fromJson constructor
GoogleCloudDialogflowV2Intent.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowV2Intent.fromJson(core.Map json_)
: this(
action: json_.containsKey('action')
? json_['action'] as core.String
: null,
defaultResponsePlatforms:
json_.containsKey('defaultResponsePlatforms')
? (json_['defaultResponsePlatforms'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
endInteraction: json_.containsKey('endInteraction')
? json_['endInteraction'] as core.bool
: null,
events: json_.containsKey('events')
? (json_['events'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
followupIntentInfo: json_.containsKey('followupIntentInfo')
? (json_['followupIntentInfo'] as core.List)
.map((value) =>
GoogleCloudDialogflowV2IntentFollowupIntentInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
inputContextNames: json_.containsKey('inputContextNames')
? (json_['inputContextNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
isFallback: json_.containsKey('isFallback')
? json_['isFallback'] as core.bool
: null,
liveAgentHandoff: json_.containsKey('liveAgentHandoff')
? json_['liveAgentHandoff'] as core.bool
: null,
messages: json_.containsKey('messages')
? (json_['messages'] as core.List)
.map((value) => GoogleCloudDialogflowV2IntentMessage.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
mlDisabled: json_.containsKey('mlDisabled')
? json_['mlDisabled'] as core.bool
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
outputContexts: json_.containsKey('outputContexts')
? (json_['outputContexts'] as core.List)
.map((value) => GoogleCloudDialogflowV2Context.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
parameters: json_.containsKey('parameters')
? (json_['parameters'] as core.List)
.map((value) =>
GoogleCloudDialogflowV2IntentParameter.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
parentFollowupIntentName:
json_.containsKey('parentFollowupIntentName')
? json_['parentFollowupIntentName'] as core.String
: null,
priority: json_.containsKey('priority')
? json_['priority'] as core.int
: null,
resetContexts: json_.containsKey('resetContexts')
? json_['resetContexts'] as core.bool
: null,
rootFollowupIntentName: json_.containsKey('rootFollowupIntentName')
? json_['rootFollowupIntentName'] as core.String
: null,
trainingPhrases: json_.containsKey('trainingPhrases')
? (json_['trainingPhrases'] as core.List)
.map((value) =>
GoogleCloudDialogflowV2IntentTrainingPhrase.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
webhookState: json_.containsKey('webhookState')
? json_['webhookState'] as core.String
: null,
);