/// <summary>
        /// Serializes the property to a Json value.
        /// </summary>
        /// <param name="service"></param>
        /// <returns>
        /// A Json value (either a JsonObject, an array of Json values, or a Json primitive)
        /// </returns>
        internal override object InternalToJson(ExchangeService service)
        {
            JsonObject jsonProperty = new JsonObject();

            jsonProperty.AddTypeParameter(this.GetXmlElementName());
            jsonProperty.Add(XmlAttributeNames.OccurrenceId, this.UniqueId);
            jsonProperty.Add(XmlAttributeNames.ChangeKey, this.ChangeKey);

            return(jsonProperty);
        }
 /// <summary>
 /// Creates a JSON representation of this object..
 /// </summary>
 /// <param name="jsonObject">The json object.</param>
 internal virtual void InternalToJson(JsonObject jsonObject)
 {
     jsonObject.Add(XmlAttributeNames.Format, this.Format);
     jsonObject.AddTypeParameter(this.GetXmlElementName());
 }