/* Options: Date: 2025-12-06 06:28:27 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: UserNotificationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class UserNotification implements IConvertible { int? NotificationId; int? AgentId; String? Description; String? From; DateTime? CreatedDate; String? Type; String? URL; String? RefId; bool? IsDeleted; UserNotification({this.NotificationId,this.AgentId,this.Description,this.From,this.CreatedDate,this.Type,this.URL,this.RefId,this.IsDeleted}); UserNotification.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NotificationId = json['NotificationId']; AgentId = json['AgentId']; Description = json['Description']; From = json['From']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); Type = json['Type']; URL = json['URL']; RefId = json['RefId']; IsDeleted = json['IsDeleted']; return this; } Map toJson() => { 'NotificationId': NotificationId, 'AgentId': AgentId, 'Description': Description, 'From': From, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'Type': Type, 'URL': URL, 'RefId': RefId, 'IsDeleted': IsDeleted }; getTypeName() => "UserNotification"; TypeContext? context = _ctx; } class UserNotificationsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Notifications = []; bool? Deleted; UserNotificationsResponse({this.ResponseStatus,this.Notifications,this.Deleted}); UserNotificationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Notifications = JsonConverters.fromJson(json['Notifications'],'List',context!); Deleted = json['Deleted']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Notifications': JsonConverters.toJson(Notifications,'List',context!), 'Deleted': Deleted }; getTypeName() => "UserNotificationsResponse"; TypeContext? context = _ctx; } // @Route("/v1/UserNotifications/{AgentId}", "GET,OPTIONS") // @Route("/v1/UserNotifications/{NotificationId}", "DELETE,OPTIONS") class UserNotificationsRequest implements IReturn, IConvertible, IGet { int? AgentId; int? NotificationId; bool? ShowDeleted; UserNotificationsRequest({this.AgentId,this.NotificationId,this.ShowDeleted}); UserNotificationsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; NotificationId = json['NotificationId']; ShowDeleted = json['ShowDeleted']; return this; } Map toJson() => { 'AgentId': AgentId, 'NotificationId': NotificationId, 'ShowDeleted': ShowDeleted }; createResponse() => UserNotificationsResponse(); getResponseTypeName() => "UserNotificationsResponse"; getTypeName() => "UserNotificationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'UserNotification': TypeInfo(TypeOf.Class, create:() => UserNotification()), 'UserNotificationsResponse': TypeInfo(TypeOf.Class, create:() => UserNotificationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UserNotificationsRequest': TypeInfo(TypeOf.Class, create:() => UserNotificationsRequest()), });