/* Options: Date: 2026-09-23 01:48:56 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CadRenderRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CadDerivative implements IConvertible { int? CadDerivativeID; String? AttachmentId; int? VersionNo; String? Urn; String? ObjectKey; String? Status; int? Progress; String? StageLabel; bool? Has2d; bool? Has3d; bool? HasPdf; String? ThumbKey; String? ThumbUrl; String? PdfAttachmentId; String? ErrorText; String? RequestedBy; DateTime? RequestedAt; DateTime? FinishedAt; int? AgeSeconds; CadDerivative({this.CadDerivativeID,this.AttachmentId,this.VersionNo,this.Urn,this.ObjectKey,this.Status,this.Progress,this.StageLabel,this.Has2d,this.Has3d,this.HasPdf,this.ThumbKey,this.ThumbUrl,this.PdfAttachmentId,this.ErrorText,this.RequestedBy,this.RequestedAt,this.FinishedAt,this.AgeSeconds}); CadDerivative.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CadDerivativeID = json['CadDerivativeID']; AttachmentId = json['AttachmentId']; VersionNo = json['VersionNo']; Urn = json['Urn']; ObjectKey = json['ObjectKey']; Status = json['Status']; Progress = json['Progress']; StageLabel = json['StageLabel']; Has2d = json['Has2d']; Has3d = json['Has3d']; HasPdf = json['HasPdf']; ThumbKey = json['ThumbKey']; ThumbUrl = json['ThumbUrl']; PdfAttachmentId = json['PdfAttachmentId']; ErrorText = json['ErrorText']; RequestedBy = json['RequestedBy']; RequestedAt = JsonConverters.fromJson(json['RequestedAt'],'DateTime',context!); FinishedAt = JsonConverters.fromJson(json['FinishedAt'],'DateTime',context!); AgeSeconds = json['AgeSeconds']; return this; } Map toJson() => { 'CadDerivativeID': CadDerivativeID, 'AttachmentId': AttachmentId, 'VersionNo': VersionNo, 'Urn': Urn, 'ObjectKey': ObjectKey, 'Status': Status, 'Progress': Progress, 'StageLabel': StageLabel, 'Has2d': Has2d, 'Has3d': Has3d, 'HasPdf': HasPdf, 'ThumbKey': ThumbKey, 'ThumbUrl': ThumbUrl, 'PdfAttachmentId': PdfAttachmentId, 'ErrorText': ErrorText, 'RequestedBy': RequestedBy, 'RequestedAt': JsonConverters.toJson(RequestedAt,'DateTime',context!), 'FinishedAt': JsonConverters.toJson(FinishedAt,'DateTime',context!), 'AgeSeconds': AgeSeconds }; getTypeName() => "CadDerivative"; TypeContext? context = _ctx; } class CadRenderResponse implements IConvertible { ResponseStatus? ResponseStatus; CadDerivative? Derivative; CadRenderResponse({this.ResponseStatus,this.Derivative}); CadRenderResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Derivative = JsonConverters.fromJson(json['Derivative'],'CadDerivative',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Derivative': JsonConverters.toJson(Derivative,'CadDerivative',context!) }; getTypeName() => "CadRenderResponse"; TypeContext? context = _ctx; } // @Route("/v1/cad/{AttachmentId}/render", "POST,OPTIONS") class CadRenderRequest implements IReturn, IConvertible, IPost { String? AttachmentId; int? VersionNo; CadRenderRequest({this.AttachmentId,this.VersionNo}); CadRenderRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AttachmentId = json['AttachmentId']; VersionNo = json['VersionNo']; return this; } Map toJson() => { 'AttachmentId': AttachmentId, 'VersionNo': VersionNo }; createResponse() => CadRenderResponse(); getResponseTypeName() => "CadRenderResponse"; getTypeName() => "CadRenderRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CadDerivative': TypeInfo(TypeOf.Class, create:() => CadDerivative()), 'CadRenderResponse': TypeInfo(TypeOf.Class, create:() => CadRenderResponse()), 'CadRenderRequest': TypeInfo(TypeOf.Class, create:() => CadRenderRequest()), });