/* Options: Date: 2026-09-21 23:23:17 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: AttachmentViewRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AttachmentViewResponse implements IConvertible { ResponseStatus? ResponseStatus; String? AttachmentId; String? FileName; String? MimeType; double? FileSizeInKB; String? Extension; String? Category; String? Viewer; bool? IsSensitive; bool? CanDownload; String? ContentUrl; String? MediaUrl; int? PageCount; int? CurrentVersionNo; int? VersionCount; String? TableName; int? RecordId; String? CreatedBy; DateTime? CreatedDate; AttachmentViewResponse({this.ResponseStatus,this.AttachmentId,this.FileName,this.MimeType,this.FileSizeInKB,this.Extension,this.Category,this.Viewer,this.IsSensitive,this.CanDownload,this.ContentUrl,this.MediaUrl,this.PageCount,this.CurrentVersionNo,this.VersionCount,this.TableName,this.RecordId,this.CreatedBy,this.CreatedDate}); AttachmentViewResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); AttachmentId = json['AttachmentId']; FileName = json['FileName']; MimeType = json['MimeType']; FileSizeInKB = JsonConverters.toDouble(json['FileSizeInKB']); Extension = json['Extension']; Category = json['Category']; Viewer = json['Viewer']; IsSensitive = json['IsSensitive']; CanDownload = json['CanDownload']; ContentUrl = json['ContentUrl']; MediaUrl = json['MediaUrl']; PageCount = json['PageCount']; CurrentVersionNo = json['CurrentVersionNo']; VersionCount = json['VersionCount']; TableName = json['TableName']; RecordId = json['RecordId']; CreatedBy = json['CreatedBy']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'AttachmentId': AttachmentId, 'FileName': FileName, 'MimeType': MimeType, 'FileSizeInKB': FileSizeInKB, 'Extension': Extension, 'Category': Category, 'Viewer': Viewer, 'IsSensitive': IsSensitive, 'CanDownload': CanDownload, 'ContentUrl': ContentUrl, 'MediaUrl': MediaUrl, 'PageCount': PageCount, 'CurrentVersionNo': CurrentVersionNo, 'VersionCount': VersionCount, 'TableName': TableName, 'RecordId': RecordId, 'CreatedBy': CreatedBy, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!) }; getTypeName() => "AttachmentViewResponse"; TypeContext? context = _ctx; } // @Route("/v1/AttachmentView/{AttachmentId}", "GET,OPTIONS") class AttachmentViewRequest implements IReturn, IConvertible, IGet { String? AttachmentId; AttachmentViewRequest({this.AttachmentId}); AttachmentViewRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AttachmentId = json['AttachmentId']; return this; } Map toJson() => { 'AttachmentId': AttachmentId }; createResponse() => AttachmentViewResponse(); getResponseTypeName() => "AttachmentViewResponse"; getTypeName() => "AttachmentViewRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AttachmentViewResponse': TypeInfo(TypeOf.Class, create:() => AttachmentViewResponse()), 'AttachmentViewRequest': TypeInfo(TypeOf.Class, create:() => AttachmentViewRequest()), });