/// <summary>
 /// Sets the data with the contents of another SelfDescribingJson
 /// </summary>
 /// <returns>The SelfDescribingJson with a nested SelfDescribingJson</returns>
 /// <param name="data">The SelfDescribingJson to nest</param>
 public SelfDescribingJson SetData(SelfDescribingJson data)
 {
     if (payload == null)
     {
         return(this);
     }
     payload [Constants.DATA] = data.GetDictionary();
     return(this);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SnowplowTracker.Payload.SelfDescribingJson"/> class.
 /// </summary>
 /// <param name="schema">A schema String</param>
 /// <param name="data">A SelfDescribingJson object</param>
 public SelfDescribingJson(String schema, SelfDescribingJson data)
 {
     SetSchema(schema);
     SetData(data);
 }