GoogleCloudDialogflowV2IntentTrainingPhrase.fromMap constructor
GoogleCloudDialogflowV2IntentTrainingPhrase.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCloudDialogflowV2IntentTrainingPhrase.fromMap(Map<String, dynamic> map) {
return GoogleCloudDialogflowV2IntentTrainingPhrase(
parts: pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2IntentTrainingPhrasePart>(map['parts']!, (value) => GoogleCloudDialogflowV2IntentTrainingPhrasePart.fromMap((value as Map).cast<String, dynamic>()))),
timesAddedCount: (() { final guardedValue = map['timesAddedCount']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
type: pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentTrainingPhraseType.fromValue(map['type']! as String)),
);
}