using System.Collections; using System.Collections.Generic; using System.Text; using UnityEngine; public class RequestDataModel { public string InputText; public Dictionary PossibleIntents = new Dictionary(); public string GetRequestText() { StringBuilder sb = new StringBuilder(); foreach (KeyValuePair keyValuePair in this.PossibleIntents) { sb.AppendLine($"Key=\"{keyValuePair.Key}\",Text=\"{keyValuePair.Value}\","); } sb.AppendLine($"Input=\"{this.InputText}\""); return sb.ToString(); } }