// ReSharper disable once InconsistentNaming public string ToJSON() => LaraTools.Serialize(this);
/// <summary> /// Serializes a class decorated with DataContract to a JSON string /// </summary> /// <typeparam name="T">Type of class</typeparam> /// <param name="instance">Instance to serialize</param> /// <returns>JSON string</returns> public string Stringify <T>(T instance) => LaraTools.Serialize(instance);
/// <summary> /// Serializes a class decorated with DataContract to a JSON string /// </summary> /// <param name="instance">Instance to serialize</param> /// <param name="type">Type of class</param> /// <returns>JSON string</returns> public string Stringify(object instance, Type type) => LaraTools.Serialize(instance, type);
// ReSharper disable once InconsistentNaming public string ToJSON() { return(LaraTools.Serialize(this)); }