//
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
//
using System.Text.Json.Serialization;
namespace Astral.ApiServer.Models.Common;
///
/// Success with data response.
///
public class DataResponseModel : ResponseModel
{
///
/// Initializes a new instance of the class.
///
/// Instance of .
public DataResponseModel(TDataType data)
{
Status = "success";
Success = true;
Data = data;
}
///
/// The data response.
///
[JsonPropertyName("data")]
public TDataType Data { get; set; }
}