/* Options: Date: 2025-12-06 06:10:36 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: NotificationRecipientRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class NotificationRecipient implements IConvertible { int? NotificationRecipientId; int? NotificationMessageId; int? RecipientId; String? Folder; bool? IsStarred; bool? IsImportant; bool? IsRead; bool? IsDeleted; NotificationRecipient({this.NotificationRecipientId,this.NotificationMessageId,this.RecipientId,this.Folder,this.IsStarred,this.IsImportant,this.IsRead,this.IsDeleted}); NotificationRecipient.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationRecipientId = json['NotificationRecipientId']; NotificationMessageId = json['NotificationMessageId']; RecipientId = json['RecipientId']; Folder = json['Folder']; IsStarred = json['IsStarred']; IsImportant = json['IsImportant']; IsRead = json['IsRead']; IsDeleted = json['IsDeleted']; return this; } Map toJson() => { 'NotificationRecipientId': NotificationRecipientId, 'NotificationMessageId': NotificationMessageId, 'RecipientId': RecipientId, 'Folder': Folder, 'IsStarred': IsStarred, 'IsImportant': IsImportant, 'IsRead': IsRead, 'IsDeleted': IsDeleted }; getTypeName() => "NotificationRecipient"; TypeContext? context = _ctx; } class NotificationRecipientExtended extends NotificationRecipient implements IConvertible { String? RecipientName; NotificationRecipientExtended({this.RecipientName}); NotificationRecipientExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); RecipientName = json['RecipientName']; return this; } Map toJson() => super.toJson()..addAll({ 'RecipientName': RecipientName }); getTypeName() => "NotificationRecipientExtended"; TypeContext? context = _ctx; } class NotificationRecipientResponse implements IConvertible { ResponseStatus? ResponseStatus; List? NotificationRecipient = []; NotificationRecipientResponse({this.ResponseStatus,this.NotificationRecipient}); NotificationRecipientResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); NotificationRecipient = JsonConverters.fromJson(json['NotificationRecipient'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'NotificationRecipient': JsonConverters.toJson(NotificationRecipient,'List',context!) }; getTypeName() => "NotificationRecipientResponse"; TypeContext? context = _ctx; } // @Route("/v1/NotificationRecipient", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/NotificationRecipient/{NotificationRecipientId}", "GET,POST,PUT,DELETE,OPTIONS") class NotificationRecipientRequest implements IReturn, IConvertible, IPost { List? NotificationRecipient = []; NotificationRecipientRequest({this.NotificationRecipient}); NotificationRecipientRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationRecipient = JsonConverters.fromJson(json['NotificationRecipient'],'List',context!); return this; } Map toJson() => { 'NotificationRecipient': JsonConverters.toJson(NotificationRecipient,'List',context!) }; createResponse() => NotificationRecipientResponse(); getResponseTypeName() => "NotificationRecipientResponse"; getTypeName() => "NotificationRecipientRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NotificationRecipient': TypeInfo(TypeOf.Class, create:() => NotificationRecipient()), 'NotificationRecipientExtended': TypeInfo(TypeOf.Class, create:() => NotificationRecipientExtended()), 'NotificationRecipientResponse': TypeInfo(TypeOf.Class, create:() => NotificationRecipientResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NotificationRecipientRequest': TypeInfo(TypeOf.Class, create:() => NotificationRecipientRequest()), });