rama creada apartir de master en j
This commit is contained in:
@@ -5,6 +5,9 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace adas_core.Domain.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request payload for the administrative panel operations.
|
||||
/// </summary>
|
||||
public class AdmPanelRequest
|
||||
{
|
||||
public string? Type { get; set; }
|
||||
@@ -61,15 +64,20 @@ public class AdmPanelRequest
|
||||
|
||||
public Dictionary<string, object>? SectionItems { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns a JSON representation of the current object using <see cref="JsonConvert.SerializeObject(object, Formatting)"/> with no formatting.
|
||||
/// If serialization fails, falls back to the base <see cref="object.ToString"/> implementation.
|
||||
/// </summary>
|
||||
/// <returns>A JSON-serialized string of the object, or the result of <c>base.ToString()</c> if serialization throws an exception.</returns>
|
||||
public override string? ToString()
|
||||
{
|
||||
try
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.None);
|
||||
try
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.None);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return base.ToString();
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
return base.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user