/// <summary>
 /// Clones the data element.
 /// </summary>
 public static T Clone <T>(T value)
 {
     return(value == null ? default(T) : ServiceJsonUtility.FromJson <T>(ServiceJsonUtility.ToJson(value)));
 }
Esempio n. 2
0
 /// <summary>
 /// Returns the DTO as JSON.
 /// </summary>
 public override string ToString() => ServiceJsonUtility.ToJson(this);
 /// <summary>
 /// Clones the data element.
 /// </summary>
 public static T Clone <T>(T value) => value == null ? default : ServiceJsonUtility.FromJson <T>(ServiceJsonUtility.ToJson(value));