BuildIt.Bot.Client.DirectLinkApi.Models.Conversation.DeserializeJson C# (CSharp) Method

DeserializeJson() public method

Deserialize the object
public DeserializeJson ( JToken inputObject ) : void
inputObject JToken
return void
        public virtual void DeserializeJson(JToken inputObject)
        {
            if (inputObject != null && inputObject.Type != JTokenType.Null)
            {
                JToken conversationIdValue = inputObject["conversationId"];
                if (conversationIdValue != null && conversationIdValue.Type != JTokenType.Null)
                {
                    this.ConversationId = ((string)conversationIdValue);
                }
                JToken eTagValue = inputObject["eTag"];
                if (eTagValue != null && eTagValue.Type != JTokenType.Null)
                {
                    this.ETag = ((string)eTagValue);
                }
                JToken tokenValue = inputObject["token"];
                if (tokenValue != null && tokenValue.Type != JTokenType.Null)
                {
                    this.Token = ((string)tokenValue);
                }
            }
        }
    }