Skip to content
Docs Try Aspire

AspireDtoAttribute Properties

Class Properties 1 member
Marks a class as an ATS (Aspire Type System) Data Transfer Object. DTOs are serializable types used to pass structured data to capabilities.
DtoTypeId Section titled DtoTypeId nullable string?
Gets or sets an optional type identifier for this DTO. If not specified, the DTO will be serialized as a plain JSON object.
public string? DtoTypeId { get; set; }
When set, the serialized JSON will include a $type field with this value.