/* Options: Date: 2025-12-06 07:52:34 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: NotificationAttachmentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class NotificationAttachment implements IConvertible { int? NotificationAttachmentId; int? NotificationMessageId; Uint8List? Attachment = []; String? FileName; String? MimeType; double? FileSizeInKB; DateTime? DateCreated; NotificationAttachment({this.NotificationAttachmentId,this.NotificationMessageId,this.Attachment,this.FileName,this.MimeType,this.FileSizeInKB,this.DateCreated}); NotificationAttachment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationAttachmentId = json['NotificationAttachmentId']; NotificationMessageId = json['NotificationMessageId']; Attachment = JsonConverters.fromJson(json['Attachment'],'Uint8List',context!); FileName = json['FileName']; MimeType = json['MimeType']; FileSizeInKB = JsonConverters.toDouble(json['FileSizeInKB']); DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); return this; } Map toJson() => { 'NotificationAttachmentId': NotificationAttachmentId, 'NotificationMessageId': NotificationMessageId, 'Attachment': JsonConverters.toJson(Attachment,'Uint8List',context!), 'FileName': FileName, 'MimeType': MimeType, 'FileSizeInKB': FileSizeInKB, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!) }; getTypeName() => "NotificationAttachment"; TypeContext? context = _ctx; } class NotificationAttachmentResponse implements IConvertible { ResponseStatus? ResponseStatus; List? NotificationAttachment = []; NotificationAttachmentResponse({this.ResponseStatus,this.NotificationAttachment}); NotificationAttachmentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); NotificationAttachment = JsonConverters.fromJson(json['NotificationAttachment'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'NotificationAttachment': JsonConverters.toJson(NotificationAttachment,'List',context!) }; getTypeName() => "NotificationAttachmentResponse"; TypeContext? context = _ctx; } // @Route("/v1/NotificationAttachment", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/NotificationAttachment/{NotificationAttachmentId}", "GET,POST,PUT,DELETE,OPTIONS") class NotificationAttachmentRequest implements IReturn, IConvertible, IPost { List? NotificationAttachment = []; NotificationAttachmentRequest({this.NotificationAttachment}); NotificationAttachmentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationAttachment = JsonConverters.fromJson(json['NotificationAttachment'],'List',context!); return this; } Map toJson() => { 'NotificationAttachment': JsonConverters.toJson(NotificationAttachment,'List',context!) }; createResponse() => NotificationAttachmentResponse(); getResponseTypeName() => "NotificationAttachmentResponse"; getTypeName() => "NotificationAttachmentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NotificationAttachment': TypeInfo(TypeOf.Class, create:() => NotificationAttachment()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'NotificationAttachmentResponse': TypeInfo(TypeOf.Class, create:() => NotificationAttachmentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NotificationAttachmentRequest': TypeInfo(TypeOf.Class, create:() => NotificationAttachmentRequest()), });