/* Options: Date: 2025-12-06 05:04:59 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: NotificationMessageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class NotificationMessage implements IConvertible { int? NotificationMessageId; int? NotificationHeaderId; int? SenderId; String? Subject; String? Message; DateTime? DateCreated; String? SenderName; NotificationMessage({this.NotificationMessageId,this.NotificationHeaderId,this.SenderId,this.Subject,this.Message,this.DateCreated,this.SenderName}); NotificationMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationMessageId = json['NotificationMessageId']; NotificationHeaderId = json['NotificationHeaderId']; SenderId = json['SenderId']; Subject = json['Subject']; Message = json['Message']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); SenderName = json['SenderName']; return this; } Map toJson() => { 'NotificationMessageId': NotificationMessageId, 'NotificationHeaderId': NotificationHeaderId, 'SenderId': SenderId, 'Subject': Subject, 'Message': Message, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'SenderName': SenderName }; getTypeName() => "NotificationMessage"; TypeContext? context = _ctx; } class NotificationMessageResponse implements IConvertible { ResponseStatus? ResponseStatus; List? NotificationMessage = []; NotificationMessageResponse({this.ResponseStatus,this.NotificationMessage}); NotificationMessageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); NotificationMessage = JsonConverters.fromJson(json['NotificationMessage'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'NotificationMessage': JsonConverters.toJson(NotificationMessage,'List',context!) }; getTypeName() => "NotificationMessageResponse"; TypeContext? context = _ctx; } // @Route("/v1/NotificationMessage", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/NotificationMessage/{NotificationMessageId}", "GET,POST,PUT,DELETE,OPTIONS") class NotificationMessageRequest implements IReturn, IConvertible, IPost { List? NotificationMessage = []; NotificationMessageRequest({this.NotificationMessage}); NotificationMessageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationMessage = JsonConverters.fromJson(json['NotificationMessage'],'List',context!); return this; } Map toJson() => { 'NotificationMessage': JsonConverters.toJson(NotificationMessage,'List',context!) }; createResponse() => NotificationMessageResponse(); getResponseTypeName() => "NotificationMessageResponse"; getTypeName() => "NotificationMessageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NotificationMessage': TypeInfo(TypeOf.Class, create:() => NotificationMessage()), 'NotificationMessageResponse': TypeInfo(TypeOf.Class, create:() => NotificationMessageResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NotificationMessageRequest': TypeInfo(TypeOf.Class, create:() => NotificationMessageRequest()), });